Re: default folder for 'choose file name'
Re: default folder for 'choose file name'
- Subject: Re: default folder for 'choose file name'
- From: julifos <email@hidden>
- Date: Wed, 25 Jun 2003 09:59:33 +0200
>
'choose file name default name ...' fills in the default name in the
>
dialog, but it doesn't set the default folder to the folder of my
>
default.
>
>
Is there any way to set the default folder for any of the choose *
>
dialogs ?
>
>
It's really more vital for my app that the files go in the correct
>
place than that
>
they get a particular name.
>
>
>
-- Steve Majewski <email@hidden>
Every applet choosing a folder should generate an entry in a plist file
auto-generated, determining the last choosen path. So, the next time you run
your app, it will map to such folder.
I think you can alter such preference:
##########################################
set yourApp to quoted form of "chooseFolder"
set defaultFolder to quoted form of "file://localhost/Users/x/Documents/"
do shell script "defaults write " & yourApp &
" 'AppleNavServices:ChooseFolder:0:Path'" & defaultFolder
choose folder
##########################################
For a "choose file name" you may write the defaults for
"AppleNavServices:PutFile:0:Path" (untested, but may work)
JJ
_______________________________________________
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.