Re: Scripting Default Folder's scripting addition
Re: Scripting Default Folder's scripting addition
- Subject: Re: Scripting Default Folder's scripting addition
- From: ehsan saffari <email@hidden>
- Date: Tue, 20 Nov 2001 01:09:06 -0600
On 18/11/2001 18:43, Marc K. Myers" <email@hidden> wrote:
>
According to its dictionary, the scripting addition is looking for a
>
file specification, not the alias that's returned by "choose folder".
>
This worked fine for me
>
>
SetFileDialogFolder ((choose folder) as text)
>
choose file
>
>
because I coerced the alias to text path to the folder.
Weired! That snippet returns a "string", not a file specification as the
osax "supposedly" expects. doesn't work on 8.6.
SetFileDialogFolder ((choose folder) as text) --> Parameter error
I say "supposedly" because this doesn't work either:
set z to ((choose folder) as text) as file
class of z --> file specification
SetFileDialogFolder z --> Parameter error
cheers
ehsan