• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: URL access scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
)


  • Follow-Ups:
    • Re: URL access scripting
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: URL access scripting (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Window basics...
  • Next by Date: RE: Window basics...
  • Previous by thread: Re: URL access scripting
  • Next by thread: Re: URL access scripting
  • Index(es):
    • Date
    • Thread