Re: Copy to clipboard question
Re: Copy to clipboard question
- Subject: Re: Copy to clipboard question
- From: Kurt Klamp <email@hidden>
- Date: Thu, 24 Jan 2008 21:38:33 +0100
Am 24.01.2008 um 21:28 schrieb Oakley Masten:
Greeting all.
What is the syntax to copy a variable to the clipboard
as text.
(I want to paste it into another application later.)
tell application "Finder"
set theFile to choose file
display dialog (theFile as text) -- the actual file
path
copy (theFile as text) to the clipboard --this does
not work.
end tell
Can I treat clipboard data like a regular variable.
What I mean is can I do something like:
set clipboard to clipboard & return & (theFile as
text)
this works here (10.4.11)
assumed that f contains an alias
set the clipboard to (f as string)
set the clipboard to (get the clipboard) & return & (f as string)
You note the 'get' ?
hth,
Kurt
_______________________________________________
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