• 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: Simple Tex Edit file saving problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Tex Edit file saving problem


  • Subject: Re: Simple Tex Edit file saving problem
  • From: Graff <email@hidden>
  • Date: Thu, 05 Feb 2004 19:58:24 -0500

Just add this block to the end of the script you posted:
----------
tell application "Finder"
duplicate file thePath
end tell
----------

- Ken

On Feb 5, 2004, at 3:07 PM, Bernard Azancot wrote:

Hello scripters !

My script peforms several Tex Edit text cleaning operations.
Finally, I rename the text and save it...



-- Script --
set timestring to do shell script "date '+%d-%m-%Y'"
set TheNewName to "OCR " & timestring & ".txt"
set thePath to (the path to the desktop folder as text) & TheNewName
save in thePath with creator "TBB6"
--------------

This works fine.
Now, I would like to backup the same file (impossible to give AS the real file name. It changes with the date.), to another folder. How can I achieve it ?
I have tried "duplicate", "copy" commands without success
The problem is that I do not know how to inform AS what file is concerned by the duplication or copy operation
_______________________________________________
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.

References: 
 >Simple Tex Edit file saving problem (From: Bernard Azancot <email@hidden>)

  • Prev by Date: Re: Photoshop CS: Doesn't do 300 dpi?
  • Next by Date: Re: Calculate Sunrise, Sunset?
  • Previous by thread: Simple Tex Edit file saving problem
  • Next by thread: Help with NSPopUpButtonCell and data sources needed
  • Index(es):
    • Date
    • Thread