Re: Can't re-name file with time stamp
Re: Can't re-name file with time stamp
- Subject: Re: Can't re-name file with time stamp
- From: "email@hidden" <email@hidden>
- Date: Thu, 21 Feb 2002 10:44:50 +1100
File names one the Mac cannot include colons. They are used as
the folder path delimiters (eg. Disk:folder:file).
----- Original Message -----
From: Graham Fielder <email@hidden>
Date: Thursday, February 21, 2002 8:14 am
Subject: Can't re-name file with time stamp
>
I have a simple script in which I want to replace the name of a
>
file with a
>
Time stamp.
>
>
tell application "Finder"
>
>
display dialog " Time " & the time string of (the current date)
>
>
set name of "TEST" to " Time " & the time string of (the current
date)
>
>
end tell
>
>
>
>
The time dialog is displayed correctly but I get an error message
>
saying :-
>
>
"Can't set name of "TEST " to "Time 21:04:20.".
>
>
What am I doing wrong?. (Using OS
>
9.2._______________________________________________ap
plescript-
>
users mailing list | email@hidden
>
Help/Unsubscribhttp://www.lists.apple.com/mailman/listinf
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.