Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iTunes, NSAppleScript, and timeout



Op 22-mrt-2007, om 21:25 heeft Olof Hellman het volgende geschreven:

 Patrick wrote --

I will be modifying the source in my application,
so this isn't an option for me.

Rather than modifying the AppleScript source in your application, could you solve your problem by loading a compiled script and calling into it with a parameter list that you define in your application? If so, then you should investigate the AppleScript subroutine event.

Hmm, could you elaborate on that last sentence? It sounds very interesting, but I don't fully understand it ;-)


As far as I know, I could implement this strategy by setting up an NSTask to execute 'osascript get.scpt arg1'. That should work (also because I don't really need to get any data back from the script) but it would be a bit more work to set up, and a bit slower to execute.

patrick

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: iTunes, NSAppleScript, and timeout (From: patrick machielse <email@hidden>)
 >RE: iTunes, NSAppleScript, and timeout (From: Olof Hellman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.