Hey,
I am trying to schedule the execution of an Applescript. The purpose is to create an new folder with the current day's date daily. I want to either schedule is so that when I start up my Mac the Applescript will run (a login item maybe??) or at a specified time of the day, daily.
This is what I have so far:
set {year:y, month:m, day:d, time string:t} to (current date)
set date_format to (y * 10000 + m * 100 + d) as string
set reformated_date to (text items 5 thru 6 of date_format as string) & "/" & (text items 7 thru 8 of date_format as string) & "/" & (text items 1 thru 4 of date_format as string)
tell application "Finder"
activate
make new folder at folder "Desktop" of folder "John" of folder "Users" of startup disk with properties {name:reformated_date}
end tell
Any thoughts?
I am trying to schedule the execution of an Applescript. The purpose is to create an new folder with the current day's date daily. I want to either schedule is so that when I start up my Mac the Applescript will run (a login item maybe??) or at a specified time of the day, daily.
This is what I have so far:
set {year:y, month:m, day:d, time string:t} to (current date)
set date_format to (y * 10000 + m * 100 + d) as string
set reformated_date to (text items 5 thru 6 of date_format as string) & "/" & (text items 7 thru 8 of date_format as string) & "/" & (text items 1 thru 4 of date_format as string)
tell application "Finder"
activate
make new folder at folder "Desktop" of folder "John" of folder "Users" of startup disk with properties {name:reformated_date}
end tell
Any thoughts?