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

create an empty file?


  • Subject: create an empty file?
  • From: Robert Poland <email@hidden>
  • Date: Fri, 23 Aug 2002 14:15:03 -0400

Got the answer to my question below back from Thorsten Lemke
(GraphicConvertor author). How do you create an empty file?, and
what's the logic there?

GC 4.4.4 Carbon
AS 1.8.3
OX 10.1.5

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.
--
Bob Poland - Sumter, SC
email@hidden
Check out my garage sale http://www.ibrb.org/


Hello,

please create an empty file first with the finder.

Thorsten
--
Bob Poland - Sumter, SC
email@hidden
Check out my garage sale http://www.ibrb.org/
_______________________________________________
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: Running Subroutines from Other Scripts
  • Next by Date: Re: stack/table overflows on storing complex scripts
  • Previous by thread: Re: Running Subroutines from Other Scripts
  • Next by thread: RE: create an empty file?
  • Index(es):
    • Date
    • Thread