• 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: "Adam K. Wuellner" <email@hidden>
  • Date: Wed, 22 Sep 2004 09:30:58 -0500

On Sep 20, 2004, at 3:09 PM, Michelle Steiner wrote:
On Sep 20, 2004, at 10:29 AM, Adam K. Wuellner wrote:
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)

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

No dice. If you look again at those two lines, you'll see that result and new_file both refer to the same thing, a new Affrus document. The second argument to 'save...' should be a 'file', according to Affrus's dictionary. The only 'file'-type thing that seems to work is the furl returned by 'choose file name', and I haven't found a way to construct one outside of using choose file name. I think I'm going to have to live with the extra dialog box.


Thanks for trying,

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


  • 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>)
 >Re: specifying a new file (without "choose file name...")? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Scripting Console
  • Next by Date: Re: Crontab doesn't work for me
  • 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