I have a script that run is os 9 but not in OS X
here is the script
tell application “Finder”
activate
copy ((offset of (the month of (current date)) in ¬
"jan feb mar apr may jun jul aug sep oct nov dec ") + 3) / 4 ¬
as integer to mo
if mo < 10 then copy "0" & mo as string to mo
copy day of (current date) to da
if (day of (current date) < 10) then copy "0" & da as string to da
copy (year of (current date) as string) & "-" & mo & "-" & da to shortDate
select file "current timesheet.pdf" of folder "Timesheets" of folder "Shared" of folder "Users" of startup disk
set name of selection to shortDate
move selection to folder "Timesheets archive" of folder "Timesheets" of folder "Shared" of folder "Users" of startup disk
select file "Timesheet template(MC).pdf" of folder "timesheet template" of folder "Timesheets" of folder "Shared" of folder "Users" of startup disk
copy selection to folder "Timesheets" of folder "Shared" of folder "Users" of startup disk
select file "Timesheet template(MC).pdf" of folder "Timesheets" of folder "Shared" of folder "Users" of startup disk
set name of selection to "current timesheet.pdf"
end tell
and this is the event log
tell application “Finder”
activate
current date
date “Friday, January 28, 2005 12:11:21 PM”
offset of January in "jan feb mar apr may jun jul aug sep oct nov dec "
1
current date
date “Friday, January 28, 2005 12:11:21 PM”
current date
date “Friday, January 28, 2005 12:11:21 PM”
current date
date “Friday, January 28, 2005 12:11:21 PM”
select file “current timesheet.pdf” of folder “Timesheets” of folder “Shared” of folder “Users” of startup disk
document file “current timesheet.pdf” of folder “Timesheets” of folder “Shared” of folder “Users” of startup disk
set name of selection to “2005-01-28”
“Finder got an error: Can’t set name of selection to “2005-01-28”.”
any help would be great