• 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: dates (was: linking document file attributes into a FileMaker Pro )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dates (was: linking document file attributes into a FileMaker Pro )


  • Subject: Re: dates (was: linking document file attributes into a FileMaker Pro )
  • From: has <email@hidden>
  • Date: Wed, 31 Jul 2002 23:56:05 +0100

Andy Wylie wrote:

>> There is a line of code below that gets the date "using form." I was
>> unable to get it to do anything or even compile. Is that a UNIX thing or
>> a plug-in thing? Thanks, --jmc
>>
>> On Tuesday, July 30, 2002, at 01:04 AM, applescript-users-
>> email@hidden wrote:
>>
>>> tell application "Finder"
>>> set docFilename of thisrec to (name of docRef)
>>> set docCreatedate to creation date of docRef
>>> set docCreatedate of thisrec to the clock from <wrap>
>>> (docCreatedate) using form "%d/%m/%c%y"
>>> ... etc
>>> end tell
>>
>a plug-in thing... Akua Sweets OSAX

BTW, if Akua Sweets isn't an option (e.g. if you're on OS X), you might try
the strftimeLib library on my site. Load it into your script using
something like:

property strftimeLib : load script (alias "path to the library here")

and call it using:

tell strftimeLib to set docCreatedate to strftime(docCreatedate,
"%d/%m/%Y", true)

Or you could call Darwin's strftime function through a shell script, or
roll your own custom handler that formats dates in that particular fashion.

HTH

has

--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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: Re: Changing desktop picture in Mac OS X?
  • Next by Date: Re: Today's Question - poke a character in a string
  • Previous by thread: Re: Changing desktop picture in Mac OS X?
  • Next by thread: Reading a File (Was: Re: TextEdit and Text Item Delimiters)
  • Index(es):
    • Date
    • Thread