specifying a new file (without "choose file name...")?
specifying a new file (without "choose file name...")?
- Subject: specifying a new file (without "choose file name...")?
- From: "Adam K. Wuellner" <email@hidden>
- Date: Mon, 20 Sep 2004 12:01:31 -0500
Hello,
I am trying to get Affrus (a Perl IDE from Late Night Software) to
create and save a new document. The following code works:
------
set filename_ to "File"
set filepath_ to (path to desktop)
set file_ to choose file name default name filename_ default location
filepath_
tell application "Affrus"
make new document with properties {name:filename_}
save result in file_
end tell
------
However, this is part of a larger automation script that has already
worked out the proper filename and folder for the new document, so I'd
really like to avoid using the 'choose file name...' call. It does
nothing useful here but return the proper data type for 'save <Affrus
document> in <file>'.
Is there a non-interactive way to specify a new file?
Thanks,
Adam W
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden