• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: specifying a new file (without "choose file name...")?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: specifying a new file (without "choose file name...")?
      • From: "Adam K. Wuellner" <email@hidden>
References: 
 >specifying a new file (without "choose file name...")? (From: "Adam K. Wuellner" <email@hidden>)
 >Re: specifying a new file (without "choose file name...")? (From: "Adam K. Wuellner" <email@hidden>)

  • Prev by Date: Re: Fade Itunes
  • Next by Date: Re: application file id/can't find disk
  • Previous by thread: Re: specifying a new file (without "choose file name...")?
  • Next by thread: Re: specifying a new file (without "choose file name...")?
  • Index(es):
    • Date
    • Thread