MACSCRPT Archives

August 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

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

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

Print Reply
Mime-Version:
1.0 (Apple Message framework v752.2)
Content-Type:
text/plain; charset=US-ASCII; format=flowed
Date:
Thu, 30 Aug 2007 14:43:14 +0100
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
From:
In-Reply-To:
Content-Transfer-Encoding:
7bit
Sender:
Macintosh Scripting Systems <[log in to unmask]>
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