Re: Type Text(Sigma) question
Re: Type Text(Sigma) question
- Subject: Re: Type Text(Sigma) question
- From: JJ <email@hidden>
- Date: Fri, 02 Feb 2001 22:07:51 +0100
Super Julio dixit:
>
ORIGINAL POST
>
>> The following works fine when saved as an applet (either dbl-clicked in
>
>> Finder, or called by Quickeys) :
>
>>
>
>> tell application "Scripter." to activate
>
>> type text "a" holding down command
>
>> type text "c" holding down command
>
>>
>
>> However, I tried using identical syntax at beginning of an Applet which
>
>> goes on to do other things (Beginning with a Tell app "Tex-Edit" ) and it
>
>> failed. Wouldn't compile at the type text command?....
>
>>
>
>> So whats the differnce.
>
>>
>
>> Although I can easily work round this by using Quickeys, I'd prefer to
>
>> stick with pure AppleScript.
>
>
>> xandra
>
>
>
JJ responded:
>
> This works fine for me:
>
>
> tell application "Tex-Edit Plus"
>
> activate
>
> type text "a" holding down command
>
> end tell
>
etc....
>
>
Yes this would work fine in Tex-Edit. I need the OSAX to copy all text
>
from Scripter (which is NOT Scriptable -- I really should have been clear
>
about this.)
>
>
I'd understand if using Sigma didn't work at all with Scripter, but it
>
Does IF, the applet stops there, but fails if I continue
>
on...why?...workarounds?
>
>
still very confused,
>
xandra
>
>
>
>
>
>
>
>
>
>
Alixandra Leigh
>
AceDesign
>
email@hidden
>
------------------------------------------
>
Furniture:
>
> <http://home.rochester.rr.com/alexleighs/furniture/furniture.htm>
>
Renderings:
>
> <http://home.rochester.rr.com/alexleighs/interiors/interiors.htm>
>
>
>
there is an extension called "Prefab Player" (
http://www.prefab.com/) often
used to script non-scriptable apps.
The syntax would be
tell app "Prefab Player"
disable user input
do menu menu item "Select all" of menu "Edit"
do menu menu item "Copy" of menu "Edit"
enable user input
end tell