• 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: Steve Thompson <email@hidden>
  • Date: Fri, 25 Jul 2003 10:01:18 +0100

tell application "Finder"
try
move theFile to thePath replacing no
on error e
if e=-15267 then
-- do stuff
end if
end try
end tell


Shouldn't the 'replacing no' above append the file name instead of returning
an error?

No. There's no scope in the Finder for it to alter file names. Only users can do that.
_______________________________________________
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>
    • Re: move theFile to thePath replacing no
      • From: Johnny AppleScript <email@hidden>
References: 
 >move theFile to thePath replacing no (From: Johnny AppleScript <email@hidden>)

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