• 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
Elementary fie naming question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Scripting Page Setup using Server Events
      • From: Cameron Smith <email@hidden>
    • Re: Elementary fie naming question
      • From: Graff <email@hidden>
  • Prev by Date: Re: Strange iDisk name (e.g., name-1)
  • Next by Date: RE: Quark conflicting properties
  • Previous by thread: Re: what have the Romans ever done for us?
  • Next by thread: Re: Elementary fie naming question
  • Index(es):
    • Date
    • Thread