440Forums.com  |  MacMusic.org  |  PcMusic.org  |  Zicos.com  |  AudioLexic.org
AppleScript?   {key13}


Get current month number in AppleScript

MacOsxHints

Tuesday April 1, 2008. 04:30 PM
MacOsxHints

Do you need to get the current month as an integer in AppleScript? It's not necessarily trivial in OS 9's AppleScript, but it can be done with this line of code, as I found in this thread over on MacScripter: set currMonthNum to ((date (get "1/1")) - 2500000 - (get date (get "1"))) div -2500000 [robg adds: Note: I haven't tested this one myself.]
need current month integer AppleScript? It
Get current month number in AppleScript Read more at MacOsxHints
feeds.macosxhints.com/~r/macosxhints/recent/~3/262004390/article.php

 

 Related News 
Current next-gen Apple iPhone rumor roundup Current next-gen Apple iPhone rumor roundup
 Mac Daily News 04/12/08 04 AM 
Blockbuster to offer Apple TV rival this month? Blockbuster to offer Apple TV rival this month?
 MacNN 04/10/08 03 PM 
10.5: Set custom number and currency formats 10.5: Set custom number and currency formats
 MacOsxHints 04/09/08 04 PM 
An AppleScript to ease fast user switching An AppleScript to ease fast user switching
 MacOsxHints 04/08/08 04 PM 
Scoreboard Widget 1.3.1 Displays Current Major League Basebal... Scoreboard Widget 1.3.1 Displays Current Major League Basebal...
 AppleLinks 04/08/08 07 AM 
Mac Pro Owners Still Waiting for NVIDIA 8800GT Option... Due ... Mac Pro Owners Still Waiting for NVIDIA 8800GT Option... Due ...
 MacRumors 04/07/08 05 PM 
Apple Now Number #1 Music Retailer Apple Now Number #1 Music Retailer
 MacRumors 04/03/08 01 PM 
MacTech's VBA/AppleScript Transition Guide bundles available MacTech's VBA/AppleScript Transition Guide bundles available
 Mac Minute 03/27/08 10 PM 
eMusic boss disputes Amazon's MP3 'number two' report eMusic boss disputes Amazon's MP3 'number two' report
 Macworld UK 03/27/08 11 AM 
eMusic CEO disputes Amazon MP3 ‘number two’ report eMusic CEO disputes Amazon MP3 ‘number two’ report
 Mac Central 03/27/08 12 AM 
Ruby as a Replacement for AppleScript Ruby as a Replacement for AppleScript
 TheMacObserver 03/20/08 09 PM 
Updated Paste Plain Text AppleScript for Word 2008 Updated Paste Plain Text AppleScript for Word 2008
 TidBITS 03/16/08 12 AM 
Less than 1% of Video iPods shipped during one month in 2006 ... Less than 1% of Video iPods shipped during one month in 2006 ...
 Mac Daily News 03/14/08 03 PM 
Infoworld User Note: One Month with MacBook Air Infoworld User Note: One Month with MacBook Air
 TheMacObserver 03/12/08 10 PM 
$100M iFund: KPCB?s first month expectations for iPhone dev b... $100M iFund: KPCB?s first month expectations for iPhone dev b...
 Mac Daily News 03/12/08 03 PM 
Aperture 2.0.1 Update Enhanced by AppleScript Aperture 2.0.1 Update Enhanced by AppleScript
 TidBITS 03/10/08 11 AM 
Three-month wait for iPhone apps Three-month wait for iPhone apps
 Macworld UK 03/06/08 09 AM 
Steve Jobs' nine-month battle with cancer Steve Jobs' nine-month battle with cancer
 Macworld UK 03/05/08 12 PM 
One month Windows saga: Not all that bad, Benjamin Zalutsky, ... One month Windows saga: Not all that bad, Benjamin Zalutsky, ...
 Low End Mac 03/04/08 05 PM 
10.5: Find current Space number via AppleScript 10.5: Find current Space number via AppleScript
 MacOsxHints 03/04/08 05 PM 
No talks held between Apple, China mobile over current iPhone No talks held between Apple, China mobile over current iPhone
 AppleInsider 03/03/08 08 PM 

Search

Mac Zicos
Sun July 6, 01:42 PM
AppleScript?   {key13}