RE: Choose File
RE: Choose File
- Subject: RE: Choose File
- From: Dennis Cox <email@hidden>
- Date: Fri, 20 Oct 2006 08:17:20 -0500
> ----------
> From:
> applescript-users-bounces+dcox=email@hidden on behalf
> of Ruby Madraswala
> Sent: Friday, October 20, 2006 7:57 AM
> To: Applescript Users
> Subject: RE: Choose File
>
> I thought I will take this one step further, use the multiple selections
>
> Set FileToOpen to choose file with prompt "Choose File:" default location
> alias dlocation multiple selections allowed boolean
>
When a dictionary uses the word "boolean" it means that you should insert
"true" or "false" (without quotes).
You will see when the script compiles that the phrase becomes "with multiple
selections allowed" when you use true, "without multiple selections allowed"
when you use false.
In general, this would work for toggle-able items, "with (or without)
toggle-able item" when a dictionary states "toggle-able item boolean"
Dennis
> I tried this in many way separating each option with comma, colon,
> semicolon.... generates error message. Above does not generate an error
> but does not allow multiple selections. I tried selecting using different
> keys. What am I missing?
>
> Ruby
>
> -----Original Message-----
> From: Michelle Steiner [mailto:email@hidden]
> Sent: Thursday, October 19, 2006 1:31 PM
> To: Applescript Users
> Subject: Re: Choose File
>
> On Oct 19, 2006, at 10:14 AM, Ruby Madraswala wrote:
>
> > How can I set a default folder, so the choose command will always open
> > the default folder to select files from?
>
> It's in the dictionary:
>
> choose file v : Choose a file on a disk or server
> choose file
> [with prompt string] : the prompt to be displayed in the dialog box
> [of type list of string] : a list of file types or type identifiers.
> Only files of the specified types will be selectable.
> [default location alias] : the default file location
> [invisibles boolean] : Show invisible files and folders? (default is
> true)
> [multiple selections allowed boolean] : Allow multiple items to be
> selected? (default is false)
> [showing package contents boolean] : Show the contents of packages?
> (Packages will be treated as folders. Default is false.)
> ? alias : the chosen file
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden