Elementary fie naming question
Elementary fie naming question
- Subject: Elementary fie naming question
- From: Bernard Azancot <email@hidden>
- Date: Tue, 16 Dec 2003 20:50:33 +0100
Hello scripters !
My problem is simple.
I would like to save a Tex Edit + file with a name containing the date.
I must have missed an AS book chapter... ;-)
=-=-
tell application "Tex-Edit Plus"
tell window 1
--replace blah blah...
--replace blah blah...
--replace blah blah...
set timestring to do shell script "date '+%d/%m/%Y'"
set TheNewName to "OCR " & timestring & " .txt"
--> File name example: "OCR. 16/12/03.txt"
save window 1 in file "IBM 01:Users:parents:Desktop:" & TheNewName &
" .txt" as string with creator +class TBB6;
end tell
end tell
=-=-
Thanks in advance for your help.
Regards.
Bernard
_______________________________________________
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.