Re: Clipboard use
Re: Clipboard use
- Subject: Re: Clipboard use
- From: John Stewart <email@hidden>
- Date: Tue, 22 Oct 2002 19:17:30 -0400
On Tuesday, October 22, 2002, at 04:47 PM, email@hidden
wrote:
I need to take the value that is returned when a user chooses a folder
via
a prompt and copy it to the clipboard. I've tried doing it this way:
set dpath to choose folder with prompt "locate Data Folder"
copy dpath to clipboard
However I get an error saying "can't set clipboard to alias". I've
tried
adding an AS STRING to the code to return the value as a string
instead of
as an alias or folder to no avail.
_______________________________________________
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.
from the Standard Additions osax or in early AppleScript versions -
Jon's Commands osax -
set the clipboard to: Place data on an applications clipboard. Use
inside a tell block and activate the application first (defined in:
StandardAdditions.osax)
set the clipboard to anything -- the data to place on the clipboard
So use something like this -
set the clipboard to (choose folder with prompt "Pick a folder")
John
_______________________________________________
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.