• 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: Re: simple duplicate script question (solved)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: simple duplicate script question (solved)


  • Subject: Re: Re: simple duplicate script question (solved)
  • From: Vince Angeloni <email@hidden>
  • Date: Mon, 12 Mar 2007 10:28:42 -0500


Op 12-mrt-2007, om 15:37 heeft KOENIG Yvan het volgende geschreven:

Oops, I forgot to replace copy by the correct word: duplicate ;-)


Thanks all, that solved it.

grmbl.. I was probably using some weird reference documentation.

--
Jacco


In the original script you posted, the line "copy ThisSjabloon to theWorkFolder" is one of the problems. That line is just copying the contents of the variable ThisSjabloon to the second variable theWorkFolder.

Try this instead and I think you'll be happier. This script works here even using the "unavailable" copy command for the Finder: OS X 10.4.8, G5 Quad. But perhaps it would be more reliable if you used "duplicate" as that might be the term that's available for earlier versions of AS.

tell application "Finder"
try
set theDocumentsFolder to (path to documents folder)
set theWorkFolder to (path to desktop folder)
set ThisSjabloon to theDocumentsFolder & "iCal - 1/2/07.icbu" as string
copy file ThisSjabloon to folder theWorkFolder
on error errMsg number errnum
display dialog errnum & return & errMsg
end try
end tell



Vince
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: simple duplicate script question (solved)
  • Next by Date: InDesign Override verb
  • Previous by thread: Re: simple duplicate script question
  • Next by thread: InDesign Override verb
  • Index(es):
    • Date
    • Thread