Re: Scripting Default Folder's scripting addition "SetFileDialogFolder" ...
Re: Scripting Default Folder's scripting addition "SetFileDialogFolder" ...
- Subject: Re: Scripting Default Folder's scripting addition "SetFileDialogFolder" ...
- From: Jason Bourque <email@hidden>
- Date: Sun, 18 Nov 2001 14:43:07 -0500
Harry,
Below is part of a print to file dialog in FrameMaker.
Hope this helps
Joson Bourque
--Change page size to 9.5 x 12
tell application "PreFab Player"
--Yield processor time to PreFab Player
set forced yield to true
set mouse delay to 25
ignoring application responses
--Save Button to prompt location
click button "Save"
--Using default folder click where the folder is open to open that
location in a Navigation Dialog Box
SetFileDialogFolder alias folderpath
--Paste new file name into save dialog box.
type "v" holding command
--Save FrameMaker Document in the destination folder as postscript
click button "Save"
end ignoring
set mouse delay to default mouse delay
set typing delay to default typing delay
set forced yield to false
end tell
On 11/16/01 1:29 PM, "harry brindley" <email@hidden> wrote:
>
I'm trying to set the default folder for a choose file or choose
>
folder command in AppleScript. Default Folder comes with a scripting
>
addition which seems as though it should be able to do this. But when
>
I try to set it, I get a parameter error ...
>
>
set myFolder to choose folder "Folder?"
>
SetFileDialogFolder myFolder <<<--- parameter error
>
>
... what am I doing wrong here -- or what other simple solutions
>
exist to doing this in Mac OS 9.1?
>
>
Thanks,
>
Harry