Re: URL access scripting
Re: URL access scripting
- Subject: Re: URL access scripting
- From: Michael Turner <email@hidden>
- Date: Thu, 13 Dec 2001 13:32:45 -0500
On Thursday, December 13, 2001, at 12:16 PM, Paul Berkowitz wrote:
>
repeat until done
>
set newFilePath to desktopPath & preExtName & ".txt"
>
try
>
get alias newFilePath -- if it doesn't error, you have one
>
set i to (i + 1)
>
set preExtName to "test" & i
>
on error -- means you don't have a file of this name yet
>
set done to true
>
end try
>
end repeat
>
Paul Berkowitz
Paul
On my machine, if I download a file with a duplicate name ( and I don't
change the default replacing = no ), URL Access will automatically
append a number to the filename.
/Michael Turner
OS 10.1.1
AS version = 1.7
(according to:
set ASversion to version as string
display dialog ASversion
)