Can you have handlers within handlers in applescript?

Hey guys,
I have a vast amount of handlers, but to copy the code and make one big handler will make such complex and chaotic code, how can i use those handlers as seperate commands within another handler rather than dishandling them.
thanks so much for any help:)

exactly, except in applescript you load them, you don't import them.  for a simple example, create a script called "library file.scpt" with the following contents:
on libraryDemo(txt)
  display dialog txt
end libraryDemo
save it wherever, then create another script with the code:
set library1 to load script "/path/to/library file.scpt"
library1's libraryDemo("This is how loading a script works")
run the second script and it will display the dialog.

Similar Messages

  • Can you have multiple Rates within one Work Center with multiple operations

    We have a work center called Pipeshop.   Within the Pipeshop we have multiple operations such as Welding, Threading, Cutting, Grooving etc.  Each of these operations have a different cost assoicated with them.  How can you have different cost for these operations? 
    Thank you,
    Loretta

    Hi,
    For this case you need to do following activities.
    1 Create individual activity accoding to requirement, that will be used for costing.
    2  Activity planning w r t work center.  In this cost per unit is declaring.
    3. Create Routing and modify the default activity type, w r t required activity type, suitable to operations.
    Now  Order is referring the activity type, refered in Routing rather than, work center.
    Regards
    Gururaja Hebbar

  • HT204053 can you have multiple apple id's for the family but we all use the same iCloud?

    Can you have multiple apple id's for the family members but we all us the same iCloud account?

    You'll have to have an ID you all share in order to have a shared iCloud account. It would be sensible for each person to have their own ID and their own iCloud account for email and their own data (each would be on their own computer/iOS device or user account on a Mac) and then have a common account which everyone would sign into in System Preferences>Mail, Contacts and Calendars to access shared data.
    You don't want to be all using the email in a common account - if people are using email aliases remember these can't be detached from the account and transferred to another one. Having all your emails mixed up together can be somewhat impracticable.

  • Can you have two Apple IDs on one IPAD? One for school and one for home?

    Can you have two Apple IDs on one IPAD? One for school and one for home?
    If so do you know how to do it?

    It depends on what you want to do.
    You could, for example, have one AppleID for iCloud backup [and therefore message syncing, notes syncing, etc] and a second one for iTunes [music, iBooks, etc].
    But if you are looking for a way to flip everything between different appleIDs, then no.

  • Can you have two apple ids on one mac?

    Can you have two apple ids on one mac? We each have iPhones and want to utilize iCloud.  Is this possible?

    No, in this case the 2 user accounts with its own Apple IDs would be completely seperated.
    If you want to share this things like music and app purchases you will have to to something else.
    1. Create two user accounts on your Mac (user A and user B).
    2. Create two iCloud accounts just for Mail, Contacts, Calendars, Photos, etc. (one for user A and one for user B):
    On your Mac (with Mac OS X Lion or Mountan Lion):
    Settings > Mail, Contacts, Calendars > iCloud > Create an Apple ID (button in left corner)
    On your iPhone, iPad or iPod touch (iOS 5 or later):
    Settings > Mail, Contacts, Calendars > Add Account > iCloud > Get a free @me.com address and create a new Apple ID
    3. It is not recommended because you shouldn't share your Apple ID account information with other people but you could set up your old Apple ID as an account just for store purchases (Apps, Music, ...) so that everyone of you can manage the purchases in their own library (Access is limited to 10 devices). Therefore you have to setup this "old" ID in Settings of your iOS devices (Settings > iTunes & App Store) and in iTunes on your Mac.

  • Can you show slideshow within Lightroom 4.4 in Adobe RGB color space?

    Can you show slideshow within Lightroom 4.4 (not export out from LR) in Adobe RGB color space provided that you are using a wide gamut monitor which is capable and hardware calibrated & profiled to show such color space?
    If this is possible, what is required to do so in Windows 8 and i7-4770 & HD Graphics 4600 platform or does LR take care of it automatically?
    This is very basic question, however, I could not find a clear answer/info from LR documentation, so wish that someone can advice.

    Those settings are probably stored in a plist somewhere in ~/Library/Preferences. If you can locate the appropriate file, you should be able to copy it to all the network user folders.

  • Can you have two different users with itune accounts on the same computer?

    Can you have two different users with separate itune accounts on the same Ipad?

    Yes, create another user profile on the computer and each user can log into their own profile that way.

  • Can you have two itunes accounts on the same computer?

    Can you have two itunes accounts on the same computer and if so how do you access them without syncing each others music?

    Yes. Use separate iTunes libraries(launch iTunes with the Shift(Windows) or Option(Mac OS X) key held down as needed), or different user accounts on the computer.
    (100648)

  • Can you have multiple itunes accounts on a single computer?  want to open a separate one for our daughter (but we will manage it).

    just got our daughter a new iTouch, but want to try and keep hers separate from our iPhone stuff.  can you have multiple iTunes accounts on a single computer?

    This is all i know but all you can do is just creat a new one for them both and send all the stuff to the one think u can do that i hope it helps

  • Can you have two apple id accounts on one computer??

    Hi all
    Can you have two seperate apple ID accounts on the one computer?? Imessaging wont work between two iphones if both iphones (husband & wife) use same apple ID account. any help appreciated

    Yes, you can. Apple IDs are really not meant to be shared.

  • CAN YOU HAVE TWO I TUNES ACCOUNT ON ONE COMPUTER?

    CAN YOU HAVE TWO I TUNES ACCOUNT ON ONE COMPUTER?

    The problem with making separate accounts is that this is a laptop, so likely not a huge hard drive, and if the three iTunes libraries need to have a lot of the same music (because everyone or two or three like some of the same stuff) you end up with double or triplicate copies of the music on the hard drive eating up drive space. Since they don't use his laptop normally, creating more accounts (with all the associated files and drive space usage each account would eat up) it probably isn't worth it.
    Instead, the best approach is like Chris said, to make playlists for the girls in the main library and then set up the various iPod to either sync everything (if big enough) or sync only specific playlists (if not big enough).
    Alternatively, they can set their iPods to manual syncing and then when Dad is visiting they can hook up their iPods and "shop" the library and drag in whatever they want to add to the iPods and delete what they no longer want.
    Patrick

  • Can you have more than one iTunes account with home sharing, Can you have more than one iTunes account with home sharing

    Can you have more than one itunes account at one time with apple tv

    My understanding is that the home sharing is based off of being on the same Wifi.  So if someone brings their laptop to your house and connects to your Wifi and they have home sharing on they can connect so you can see his/her iTunes library on your iTunes. 
    I haven't tried this though.  We have two laptops at home, both using my iTunes account and I can see each other's iTunes library, which I'm guessing is what you're probably doing now.  I'd be interested to know if my thought above is true. 

  • Can you have more than one apple id under the same account

    can you have more than one apple id under the same account

    Stop using the same Apple ID for iMessage on these devices.  Go to Settings>Messages>Send & Receive (Receive At in iOS 5), tap the ID shown, sign out, then sign back in using a unique ID for each device.  (Or, just sign out and stop using your Apple ID for iMessage.)

  • Can you have more than one movie per page?

    Hi, I am creating a web site and have some movie content on some of the pages. Can you have more than one quicktime file on each page? Reason I ask is that on one page I have put 3 movie files but only one shows up when I run the site online. I am not using .mac. The website is on grapeape dot co dot uk and if you look at the examples page you should see what I mean. I get one video that works and 2 large "Q"'s where the other videos were. Odd because it works locally. Any ideas? Many thanks.
    Ben

    Just noticed something. If you leave it until the first movie caches or preloads - the second one appears. Is there a way round this at all? Thanks. Ben

  • Can you have two different itunes account on the same computer

    how can you have 2 different itunes accounts on the same computer?

    You would need two seperate users on the computer. Then each library would be independent of each other. Or do you mean two seperate iTunes store accounts?

Maybe you are looking for