• 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: "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]


  • Prev by Date: Re: Mac OS X: AppleScript incorrectly decompiling tell blocks
  • Next by Date: Internet Scripting Error
  • Previous by thread: Re: Scripting Default Folder's scripting addition
  • Next by thread: Re: Scripting Default Folder's scripting addition
  • Index(es):
    • Date
    • Thread