• 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: KOENIG Yvan <email@hidden>
  • Date: Thu, 29 Mar 2012 17:08:29 +0200


Le 28 mars 2012 à 00:07, theDaniel a écrit :


The script that works for me in Leopard is something like:

try
get the clipboard
on error
set the clipboard to  " "
end try

So, If there is nothing on the clipboard the script puts a blank there. Basically that's all I want. This works perfect for what I need, but only Leopard.

If you are wanting the text contents, it would be more efficient to code :

try
get the clipboard as text
on error
set the clipboard to ""
end try

AppleScript will not waste time trying to decipher other types of data.

Yvan KOENIG (VALLAURIS, France) jeudi 29 mars 2012 17:08:22


 _______________________________________________
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: theDaniel <email@hidden>
References: 
 >Clipboard (From: theDaniel <email@hidden>)
 >Re: Clipboard (From: Michelle Steiner <email@hidden>)
 >Re: Clipboard (From: Brian Christmas <email@hidden>)
 >Re: Clipboard (From: Christopher Stone <email@hidden>)
 >Re: Clipboard (From: theDaniel <email@hidden>)

  • Prev by Date: Re: Default_Folder_Rules!
  • Next by Date: Re: Mounting A Disk
  • Previous by thread: Re: Clipboard
  • Next by thread: Re: Clipboard
  • Index(es):
    • Date
    • Thread