Re: set the clipboard not available in in some apps (like Word)
Re: set the clipboard not available in in some apps (like Word)
- Subject: Re: set the clipboard not available in in some apps (like Word)
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 13 Dec 2004 16:40:14 -0800
On 12/13/04 10:49 AM, "Joseph Weaks" <email@hidden> wrote:
> I have been reading through the NSPasteboard class documentation and
> have not yet been successful getting it to work in a call method
> statement. I typically have little success figuring out the syntax for
> these call methods.
I don't think you can. Since you have to do a few things to an instance of a
General pasteboard, you'd need to first make one and set a variable to it.
But since AppleScript has no class corresponding to NSPasteboard, you can't
do that. You'd get an error. Instead you'd have to create Objective C files
(.h and .m) to add to your project, and make an accessor method there, then
call that method via 'call method'. You'd have to override the built-in Copy
behavior in Interface Builder by linking Edit/Copy to a 'choose menu item'
event handler (and its keyboard shortcut cmd-C) which called the call
method.
> I wonder if anyone can easily provide an example statement that sets a
> variable of unicode text to the general pasteboard (ie. system
> clipboard) in a way that includes a TEXT part along with the UTXT part.
I think we'd better carry on on the AppleScript-Studio mailing list. This is
getting a bit far afield for this list. If you want to go the Obj C route,
write back to the Studio list, and I can give you a few ideas there.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden