• 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: Clipboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clipboard


  • Subject: Re: Clipboard
  • From: Brian Christmas <email@hidden>
  • Date: Tue, 27 Mar 2012 11:07:18 +1100

G'day Daniel

Under Lion, get the clipboard works so long as the clipboard only contains text.

If it contains an image, it freezes.

Even wrapping it in a tell Finder or tell System Events does not work.

try
tell application "Finder"
set theClip to (get the clipboard)--< freezes on this if image
display dialog theClip
end tell
on error errmsg number errnum
display dialog errmsg & return & errnum
end try


Regards

Santa


On 27/03/2012, at 10:21 AM, Michelle Steiner wrote:

On Mar 26, 2012, at 3:40 PM, theDaniel wrote:

How can I find if there is something on the clipboard in SL and Lion?
In Leopard I used:

get the clipboard

In SL and Lion it's broken.

Works here, Lion 10.7.3

-- Michelle

-- 
--------------------------------------------------------
      Misquotation of unattributed, trite
        metaphysical saying goes here.

  Stupid ascii               Unnecessary notice of
graphic goes here.        responsibility goes here.
---------------------------------------------------------
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: Clipboard
      • From: Christopher Stone <email@hidden>
    • Re: Clipboard
      • From: Michelle Steiner <email@hidden>
References: 
 >Clipboard (From: theDaniel <email@hidden>)
 >Re: Clipboard (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Clipboard
  • Next by Date: Re: Clipboard
  • Previous by thread: Re: Clipboard
  • Next by thread: Re: Clipboard
  • Index(es):
    • Date
    • Thread