Re: Parameter order
Re: Parameter order
- Subject: Re: Parameter order
- From: Luther Fuller <email@hidden>
- Date: Sat, 30 Jun 2012 11:14:35 -0500
On Jun 30, 2012, at 11:06 AM, Michelle Steiner wrote: This command works:
set a to choose file name with prompt "Please name the file, and specify its location." default name "Extracted sigs" default location path to desktop
But prompt, default name, and default location have to be in that exact order; if the order is changed, the script won't compile. For instance, if it's written this way:
set a to choose file name with prompt "Please name the file, and specify its location."default location path to desktop default name "Extracted sigs"
Attempting to compile it yields syntax error dialog that says "Expected end of line, etc. but found identifier."
Was this always the case?
In 10.6.8, the second line behaves as you have described. However ...
set a to choose file name with prompt "Please name the file, and specify its location." default location (path to desktop) default name "Extracted sigs"
works properly. All you have is a problem with a parenthesis.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden