• 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
specifying a new file (without "choose file name...")?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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