Re: specifying a new file (without "choose file name...")?
Re: specifying a new file (without "choose file name...")?
- Subject: Re: specifying a new file (without "choose file name...")?
- From: "Adam K. Wuellner" <email@hidden>
- Date: Mon, 20 Sep 2004 12:29:43 -0500
On Sep 20, 2004, at 12:07 PM, Michelle Steiner wrote:
Is there a non-interactive way to specify a new file?
Sure; just spell it out:
set file_ to (path to desktop as text) & "file"
Or if it's not on the desktop, you can hard code the entire path, i.e.:
set file_ to "Macintosh HD:folder:sub_folder:file:
But, Affrus.app chokes on a file specified only by string:
------
set filename_ to "File"
set filepath_ to (path to desktop)
set file_ to (filepath_ as string) & filename_
tell application "Affrus"
make new document with properties {name:filename_}
save result in file_
end tell
------
--> Affrus got an error: Out of memory. (-108)
(changing the save line to 'save result in file file_' will not
compile.)
Is Affrus to blame? (waiting for Mr. Aldritt to approve my membership
to the Affrus mailing list, so...)
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