Re: Simple Tex Edit file saving problem
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.