• 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: Copy to clipboard question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Copy to clipboard question
      • From: KOENIG Yvan <email@hidden>
References: 
 >Copy to clipboard question (From: Oakley Masten <email@hidden>)

  • Prev by Date: Copy to clipboard question
  • Next by Date: Re: GUIscritpting, Pages and PDF
  • Previous by thread: Copy to clipboard question
  • Next by thread: Re: Copy to clipboard question
  • Index(es):
    • Date
    • Thread