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

Copy to clipboard question


  • Subject: Copy to clipboard question
  • From: Oakley Masten <email@hidden>
  • Date: Thu, 24 Jan 2008 12:28:27 -0800 (PST)

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)

Well I guess that is actually two questions then !
Thanks
Oakley
 _______________________________________________
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: Kurt Klamp <email@hidden>
  • Prev by Date: Re: GUIscritpting, Pages and PDF
  • Next by Date: Re: Copy to clipboard question
  • Previous by thread: Re: GUIscritpting, Pages and PDF
  • Next by thread: Re: Copy to clipboard question
  • Index(es):
    • Date
    • Thread