• 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: Starting directory for 'choose file'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Starting directory for 'choose file'


  • Subject: Re: Starting directory for 'choose file'
  • From: John Delacour <email@hidden>
  • Date: Mon, 7 Jul 2003 08:35:20 +0100
  • Mac-eudora-version: 6.0a25

At 4:39 pm +1000 7/7/03, Richard Morton wrote:

Michelle posted this, which works for me:

tell application "Finder"
set MyHomeFolder to home as string
end tell
choose file name default name MyHomeFolder & "Documents:"

That's a rather roundabout way of doing it when 'choose file' provides

choose file default location path to "docs"

'choose file name' is intended for use when you want to suggest a name for the new file:


choose file name default location (path to "docs") default name "My new file"

It's also unnecessary to use the Finder to get 'path to current user folder'

JD




.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Starting directory for 'choose file'
      • From: Richard Morton <email@hidden>
    • Re: Starting directory for 'choose file'
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Starting directory for 'choose file' [was: Newbie blues (was Remove spaces)] (From: Richard Morton <email@hidden>)

  • Prev by Date: Re: Which X versions did not have folder actions
  • Next by Date: Re: Starting directory for 'choose file'
  • Previous by thread: Re: Starting directory for 'choose file' [was: Newbie blues (was Remove spaces)]
  • Next by thread: Re: Starting directory for 'choose file'
  • Index(es):
    • Date
    • Thread