MACSCRPT Archives

August 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 30 Aug 2007 14:43:14 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
Bill Steele wrote:

> I swear programming would be nothing but fun without syntax. In
> Tiger, Applescript 1.10.7:
>
> set onePath to (path to desktop as string) & (docName as string)
> set newPath to ("Server:Folder:" & (docName as string)
>
> tell application "Finder"
> duplicate item onePath to newPath
> end tell

tell application "Finder"
     duplicate item docName of desktop to folder "Server:Folder:"
end tell

HTH

has
-- 
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

ATOM RSS1 RSS2