• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Parameter order
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parameter order


  • Subject: Re: Parameter order
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 30 Jun 2012 18:20:01 +0200

Le 30 juin 2012 à 18:06, Michelle Steiner a écrit :

> 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."

Hello Michelle,

This one compiles here (Lion 10.7.4 too):

	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"


> Was this always the case?

I wouldn't swear it, but I think the "path to..." command would have triggered the same behavior on previous versions of the OS as well.

Axel


 _______________________________________________
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


References: 
 >Parameter order (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Parameter order
  • Next by Date: Re: Parameter order
  • Previous by thread: Re: Parameter order
  • Next by thread: Outlook 2011 Fix Needed for Filemaker
  • Index(es):
    • Date
    • Thread