Re: Clipboard
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