• 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: move theFile to thePath replacing no
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: move theFile to thePath replacing no


  • Subject: Re: move theFile to thePath replacing no
  • From: Johnny AppleScript <email@hidden>
  • Date: Fri, 25 Jul 2003 03:42:48 -0600

On 03/07/25 3:01 AM, "Steve Thompson" <email@hidden> wrote:

> No. There's no scope in the Finder for it to alter file names. Only
> users can do that.
> _________________________

On 03/07/25 2:49 AM, "Gary Lists" <email@hidden> wrote:

> Append a file name? What does that mean? Do you want to add the content of
> one file to another file?

Well, **excuse me** for wanting the same behavior that URL Access Scripting
is capable of. . . ;-)

Try this:

tell application "URL Access Scripting"
-->name of file: fileName
download theFile to thepath replacing no
--> file of same name already exists in thePath
--> rename theFile: fileName1
end tell

Pretty nifty, huh?

Now this:

tell application "Finder"
-->name of file: fileName
delete theFile
--> file of same name already exists in the Trash
-->name of file in trash: fileName1
end tell

Since Finder Dictionary says that default of replacing no is no, I just
presumed that spelling it out might actually do something similar to URLAS.
_______________________________________________
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.

  • Follow-Ups:
    • Re: move theFile to thePath replacing no
      • From: Gary Lists <email@hidden>
References: 
 >Re: move theFile to thePath replacing no (From: Steve Thompson <email@hidden>)

  • Prev by Date: Re: move theFile to thePath replacing no
  • Next by Date: Re: UI Scripting FileMaker
  • Previous by thread: Re: move theFile to thePath replacing no
  • Next by thread: Re: move theFile to thePath replacing no
  • Index(es):
    • Date
    • Thread