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

Re: simple duplicate script question


  • Subject: Re: simple duplicate script question
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 12 Mar 2007 14:46:16 +0100


Le 12 mars 07 à 14:19:57, Jacco Rens a écrit :

Hi All,

I'm just picking up AppleScript again after a while, and my troubles with the Finder are there again ;-)

I try to copy an document from my documents folder, to the desktop like this:

tell application "Finder"
try
set theDocumentsFolder to (path to documents folder)
set theWorkFolder to (path to desktop folder)
set ThisSjabloon to theDocumentsFolder & "sjabloon" as alias
copy ThisSjabloon to theWorkFolder
end try
end tell


No workey, but no error either.

Any insight, anyone?

Best,
Jacco

Hello

I would edit like that:

tell application "Finder"
try
set theDocumentsFolder to (path to documents folder) 
set theWorkFolder to (path to desktop folder) as alias
set ThisSjabloon to (theDocumentsFolder as unicode text & "sjabloon" ) as alias
copy ThisSjabloon to theWorkFolder
end try
end tell

Yvan KOENIG
 _______________________________________________
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

  • Follow-Ups:
    • Re: simple duplicate script question
      • From: Jacco Rens <email@hidden>
References: 
 >simple duplicate script question (From: Jacco Rens <email@hidden>)

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