| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 2006-10-15, at 07:44:19, Hiroshi T. wrote:
I see that you want to avoid those many dialog boxes. You can call subroutines in AppleScript applications from scripts. Say you make an AppleScript application bundle called "HiroConvert.app" and put in it the contents of Convert.scpt. --- on convert(theOptions) -- Convert.scpt code here end convert on AAC(theOptions) set tf to theOption's batch set fname to theOption's name if (tf is true) then display dialog "batch" with icon note else display dialog "NO batch" with icon stop end if convert({batch:tf, creator:"Hiro", name:fname}) end AAC on DeEmph(theOptions) convert({batch:false}) end AAC Then you have script in the iTunes Script menu called "AAC". It looks something like: tell application "HiroConvert" activate AAC({batch:false}) end tell I'm thinking the application can do all the work of your Convert.scpt and that the script then does not need to know the path. Is that true?
Best wishes, |
_______________________________________________ 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 This email sent to email@hidden
| References: | |
| >Comprehensive Applescript Reference Book (Re: Applescript equivalent of $0 in shell script) (From: "Hiroshi T." <email@hidden>) | |
| >Re: Comprehensive Applescript Reference Book (Re: Applescript equivalent of $0 in shell script) (From: Philip Aker <email@hidden>) | |
| >Re: Comprehensive Applescript Reference Book (Re: Applescript equivalent of $0 in shell script) (From: "Hiroshi T." <email@hidden>) | |
| >Re: Comprehensive Applescript Reference Book (Re: Applescript equivalent of $0 in shell script) (From: Philip Aker <email@hidden>) | |
| >Re: Comprehensive Applescript Reference Book (Re: Applescript equivalent of $0 in shell script) (From: "Hiroshi T." <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.