Re: Scripting Default Folder's scripting addition
Re: Scripting Default Folder's scripting addition
- Subject: Re: Scripting Default Folder's scripting addition
- From: "Marc K. Myers" <email@hidden>
- Date: Mon, 19 Nov 2001 00:05:08 -0500
- Organization: [very little]
>
Date: Sun, 18 Nov 2001 11:17:10 -0800
>
Subject: Re: Scripting Default Folder's scripting addition
>
From: Allen Watson <email@hidden>
>
To: <email@hidden>
>
>
On Fri, 16 Nov 2001 14:29:27 -0400 harry brindley <email@hidden>
>
wrote:
>
>
> set myFolder to choose folder "Folder?"
>
> SetFileDialogFolder myFolder <<<--- parameter error
>
>
>
> ... what am I doing wrong here
>
>
If I recall correctly, choose folder returns a list (in case you choose more
>
than one). Try adding a middle line:
>
>
Set myFolder to item 1 of myFolder
"choose folder" returns an alias, not a list. The scripting addition is
looking for a file spec, so you have to coerce the alias to a string.
Is there a way to get "choose folder" to choose more than one? I've
never seen it.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[11/19/01 12:04:30 AM]