• 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: Scripting Default Folder's scripting addition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Referencing a Folder Relatively
  • Next by Date: determining if a file is in use
  • Previous by thread: Re: Scripting Default Folder's scripting addition
  • Next by thread: Re: applescript-users digest, Vol 2 #1316 - 15 msgs
  • Index(es):
    • Date
    • Thread