• 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: Copy and Replacing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy and Replacing


  • Subject: Re: Copy and Replacing
  • From: Richard Morton <email@hidden>
  • Date: Sat, 5 Oct 2002 16:40:41 +1000

On Saturday, October 5, 2002, at 03:15 AM, Paul Berkowitz wrote:
On 10/4/02 9:44 AM, <email@hidden> wrote:

Whats the sytanx of the with replaicing statement

It's not (generally) 'with replacing', rather:

replacing yes/no/ask

Some apps/commands that use this also allow it as a boolean - just 'with replacing' - but this is not a reliable way to use it unless it is explicitly supported in the context in which it's being used:

store script < scriptObject > in file <fullPathString> with replacing -- works for me, but is undocumented

store script <scriptObject> in file <fullPathString> replacing yes -- correct usage


...I tried and it won't compile, giving and error that "A
Replacing:true can't go with folder"

If your message subject is any indication, it looks as if your problem is
not with the replacing parameter,

It is reasonably obvious that s/he was trying to use it as a boolean. I wouldn't expect "Replacing:true" to compile anywhere, which is quite probably what was typed by the look of the error message.


but with the command: if this is in the
Finder (or any other app), you should be using 'duplicate' in the Standard
Suite, not 'copy'. 'copy' is an AppleScript term for setting variables, not
a Finder command for making duplicates of folders, files and other Finder
items.

As has noted, it is in the Finder dictionary. There was also a time (System 7.5 I think, not sure how long it lasted) when it would act like 'duplicate' under certain conditions. From memory, it would do so when passed a Finder file ref, alias or FSS, but would otherwise behave in the documented manner. Presumably done to help newbies.

Copy-ulater,

Ali Gator
-- in a vial Croc O'Dial
_______________________________________________
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: Copy and Replacing
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Copy and Replacing (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: More on 'bounds' of windows. Internet Explorer this time...
  • Next by Date: Re: Copy and Replacing
  • Previous by thread: Re: Copy and Replacing
  • Next by thread: Re: Copy and Replacing
  • Index(es):
    • Date
    • Thread