New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Applescript/Geektool Help


Post Reply New Thread Subscribe

 
Thread Tools
biga29

 
Member Since: Mar 06, 2011
Posts: 14
biga29 is on a distinguished road

biga29 is offline
EDIT: Problem solved


I'm trying to make a text clock for my desktop using Geektool. The code I'm using is this:

Code:
set minute to {"O'one", "O'two", "O'three", "O'four", "O'five", "O'six", "O'seven", "O'eight", "O'nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen”, "sixteen", "seventeen", "eighteen", "nineteen", "twenty", "twentyone", "twentytwo", "twentythree", "twentyfour", "twentyfive", "twentysix", "twentyseven", "twentynine", "thirty", "thirtyone", "thirtytwo", "thirtythree", "thirtyfour", "thirtyfive", "thirtysix", "thirtyseven", "thirtyeight", "thirtynine", "fourty", "fourtyone", "fourtytwo", "fourtythree", "fourtyfour", "fourtyfive", "fourtysix", "fourtyseven", "fourtyeight", "fourtynine", "fifty", "fiftyone", "fiftytwo", "fiftythree", "fiftyfour", "fiftyfive", "fiftysix", "fiftyseven", "fiftyeight", "fiftynine", "sixty"}
if (minutes of (current date)) = 0 then
return "O,clock"
else
return item (minutes of (current date)) of minute
end if
When I try to run this I get an error saying 'Expected “,” or “}” but found identifier.' with the "sixteen" highlighted, it gives the same error for the word in each set of quotes after sixteen also. Can anyone help me with that?

Also, the code for the hour is:

Code:
set hour to {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve"}
return item (hours of (current date)) of hour
This code runs fine in the script editor, but when I put into the geektool shell, it doesn't display anything and geektool says it fails. Anyone know why this will work in the script editor but not in geektool?

Thanks.
QUOTE Thanks

Post Reply New Thread Subscribe


« Upgrading to Snow Leopard | CPU monitoring app with history views? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 08:53 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?