Re: Dropping text on to Droplets
Re: Dropping text on to Droplets
- Subject: Re: Dropping text on to Droplets
- From: Emmanuel <email@hidden>
- Date: Mon, 11 Jun 2001 16:18:01 +0200
At 9:35 +0200 11/06/01, Michelle Steiner wrote:
>
>
On 6/11/01 12:00 AM, Emmanuel <email@hidden> wrote:
>
>
>>Problem is that I don't know how to obtain the contents of a clipping
>
>>file with vanilla AppleScript.
>
>
>
>What about having Finder open, copy and close it?
>
>
That copies the name of the clipping file, not it's contents.
Actually things are more intricate - but still my proposition is no good
solution.
If I emulate the keyboard (Smile's "press key", namely), then Cmd-C - Cmd-V
retrieves the clipping. But if I emulate only Cmd-C, then "get clipboard"
returns the clipping's name ...
Anyway (not vanilla):
---------------------
load resource 256 type "TEXT" from theClippingAsAlias
---------------------
returns the (styled) text of the clipping.
Emmanuel