I have developed a simple project in Xcode in Tiger, but the app is being deployed onto Panther machines. And, I’m getting an Applescipt error <Can’t get hours of date “Friday, October 28, 2005 9:57:59 AM”. (-1728)> Here is the code that would seem to trigger the error:
set theDate to current date
set createTimeValue to (hours of theDate & “:” & minutes of theDate & “:” & seconds of theDate) as string
Oddly, this works fine on my Powerbook with Tiger (10.4.2 dev machine) but doesn’t work on a similar Powerbook running Panther (10.3.9). At first I thought that the Scripting Addition wasn’t installed on the Panther machine, but then added the Addition to the project contents, and also tried running on a G5 (Panther) with the Scripting Addition installed in the System / Library.
Any suggestions would be great.
AppleScript: Xcode 2
Browser: Safari 312.3.1
Operating System: Mac OS X (10.4)