• 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: Changing current date format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing current date format


  • Subject: Re: Changing current date format
  • From: Shane Stanley <email@hidden>
  • Date: Mon, 20 Jan 2014 09:52:51 +1100

On 20 Jan 2014, at 5:16 AM, JF <email@hidden> wrote:

> These ones worked best for me:
> set subject of foo to "Invoice dated " & (do shell script "date +%d%b%Y")

The use of "set subject of foo to" suggests this is inside an application tell block, which would mean you are calling the Standard Additions command "do shell script" within it. That's not really a good idea: with a couple of exceptions, you should keep you scripting addition calls outside application tell blocks.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re(2): Changing current date format
      • From: JF <email@hidden>
References: 
 >Re(2): Changing current date format (From: JF <email@hidden>)

  • Prev by Date: Re: Changing current date format
  • Next by Date: Fwd: Changing current date format
  • Previous by thread: Re: Re(2): Changing current date format
  • Next by thread: Re(2): Changing current date format
  • Index(es):
    • Date
    • Thread