• 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: Duplicating a File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Duplicating a File


  • Subject: Re: Duplicating a File
  • From: Nigel Garvey <email@hidden>
  • Date: Fri, 16 Aug 2002 17:03:03 +0100

email@hidden wrote on Thu, 15 Aug 2002 14:12:39 -0700:

>I'm having troubles with 9 and X being different in seemingly trivial ways.
>
>Here's the script on X:
> tell application "Finder"
> set a to path to desktop folder as string
> set b to "Setup Copy"
> set c to a & b as alias
> duplicate c to startup disk with replacing
> end tell
>this works fine.
>
>Here's the script on 9:
> tell application "Finder"
> set a to path to extensions folder as string
> set b to "Folder Actions"
> set c to a & b as alias
> duplicate c to startup disk with replacing
> end tell
>which gives me an "Invalid Key Error".

tell application "Finder"
duplicate file "Folder Actions" of extensions folder to startup disk
with replacing
end tell

But why do you want to duplicate it to the root directory of the startup
disk?.

NG
_______________________________________________
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.

  • Prev by Date: Re: Simple folder walk...I think
  • Next by Date: Re: Save quark doc works and doesn't?
  • Previous by thread: Re: Duplicating a File
  • Next by thread: How to learn Applescript?
  • Index(es):
    • Date
    • Thread