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: Michelle Steiner <email@hidden>
- Date: Mon, 20 Sep 2004 13:09:42 -0700
On Sep 20, 2004, at 10:29 AM, Adam K. Wuellner wrote:
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.)
You never assigned anything within the script to the file.
Try this:
set new_file to (make new document with properties {name:filename_})
save result in new_file
-- Michelle
--
Never play strip Tarot.
_______________________________________________
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