• 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: create an empty file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: create an empty file?


  • Subject: RE: create an empty file?
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 23 Aug 2002 11:45:01 -0700

Begin forwarded message:

I don't follow this at all, nor do I see what this has to do with creating an empty file.

If you want to create a new file at a given folder, use this:

set destFile to (choose file name with prompt "prompt text goes here")

This will let the user navigate to the folder he wants (just as with choose folder) and type the file name he wants.

--> file "Dora:Users:michelle:Documents:my file"

Then you can use GC's save command to save to that file.

--Michelle

On Friday, August 23, 2002, at 11:15 AM, Robert Poland wrote:

set destFldr to ""
set destFldr to (choose folder with prompt "Choose a
destination folder:") as text

Snip...

display dialog "save as window 1 in " & destFldr &
theName & ".jpg"
save window 1 in (destFldr & theName & ".jpg") as JPEG
close window 1 saving no
end tell
end ProcessFile

This script always saves to the path of the original file and not the
path selected and indicated in the display dialog.
We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: ANNOUNCE: Script Debugger 3.0.4
  • Next by Date: Re: QuickTime: presenting two movies
  • Previous by thread: create an empty file?
  • Next by thread: ANNOUNCE: Script Debugger 3.0.4
  • Index(es):
    • Date
    • Thread