• 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: "do shell" vs. Plain old AppleScript nomenclature
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "do shell" vs. Plain old AppleScript nomenclature


  • Subject: Re: "do shell" vs. Plain old AppleScript nomenclature
  • From: "John W. Baxter" <email@hidden>
  • Date: Fri, 23 Jul 2004 10:51:38 -0700

On 7/23/2004 10:22, "Graff" <email@hidden> wrote:

> Well first of all you can get a time string very simply just using
> AppleScript:
>
> time string of (current date)
>
> -->"12:54:32 PM"
>
Or, perhaps (doing this in the morning, so cheating)...

time string of ((current date) + 3 * hours)

--> "13:46:02"

Or any of numerous other formats. In other words,
time string
doesn't travel well for anything but display. On one's own machine, one has
control over what it looks like and therefore how to parse it.

This favors either doing computations on
time of (current date)
or using the date command with a format specification to get the desired
format. But the date command doesn't travel well either, when the
destination is a pre-X Macintosh.

--John
_______________________________________________
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: 
 >Re: "do shell" vs. Plain old AppleScript nomenclature (From: Graff <email@hidden>)

  • Prev by Date: Getting from Cell to Cell in excel
  • Next by Date: Need Help Handling Recurring Events In Palm Desktop
  • Previous by thread: Re: "do shell" vs. Plain old AppleScript nomenclature
  • Next by thread: Re: "do shell" vs. Plain old AppleScript nomenclature
  • Index(es):
    • Date
    • Thread