View unanswered posts | View active topics It is currently Wed Jun 19, 2013 5:53 am



Reply to topic  [ 4 posts ] 
 month and day only for current date 
Author Message

Joined: Apr 12, 2008
Posts: 105
Post month and day only for current date
Im trying to display the date in my variables as a month and day combination (march 31 or mar 31) I have tried the following scripts with no luck.
Code: Select all
tell application "IndigoServer"
   set value of variable "date" to month and day of (current date)
end tell
the above code just wont work

However if i do this
Code: Select all
tell application "IndigoServer"
   set value of variable "date" to month of (current date)
end tell
it gives me the month correctly

and if i do this
Code: Select all
tell application "IndigoServer"
   set value of variable "date" to day of (current date)
end tell
it gives me the day of the month.

I just can't get them together.

Can someone please help

Thank you
Ed


Sat Oct 31, 2009 6:29 pm
Profile

Joined: May 27, 2007
Posts: 690
Location: NC
Post 
How about:

Code: Select all
tell application "IndigoServer"
   set value of variable "date" to(month of (current date) as string) & " " & (day of (current date) as string)
end tell


Sat Oct 31, 2009 9:33 pm
Profile

Joined: Apr 12, 2008
Posts: 105
Post 
Thank you anode, that works perfect.

Ed


Sat Oct 31, 2009 11:07 pm
Profile

Joined: May 27, 2007
Posts: 690
Location: NC
Post 
dnomode wrote:Thank you anode, that works perfect.

Ed


Glad I could help Ed. Apple script can be a bit funky at times. (I'm NO guru, just a hacker)


Sun Nov 01, 2009 7:15 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.