[SVN] Processing bundles
Denis Santelli
denis at santelli.name
Thu May 3 06:58:49 UTC 2007
I finnaly found a solution : remplace the comand with
content () {
iconv -cs -f utf-8 -t macroman//TRANSLIT | perl -pe 's/["\\]/\\
$&/g'
}
osascript <<-APPLESCRIPT
tell application "Processing 0124" to activate
set the clipboard to "$(content)"
tell application "System Events" to tell process "Processing"
keystroke "a" using command down
keystroke "v" using command down
delay 0.3
keystroke "r" using command down
end tell
APPLESCRIPT
select "entire document" in "Input"
it work fine
Le 3 mai 07 à 08:56, Allan Odgaard a écrit :
> On 2. May 2007, at 10:57, Denis Santelli wrote:
>
>> i'm trying to fix the processing bundle
>> changing "run in Processing" :
>> [...]
>> i dont understand why it work perfectly in ActionScript and dont
>> work in the bundle, any idea?
>
> Not following it 100%.
>
> You need to send key strokes to the “Processing” application.
>
> It works for you when you execute that AppleScript stand-alone, but
> not when executing it from a bundle command?
>
>
>
>
> _______________________________________________
> textmate-dev mailing list
> textmate-dev at lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate-dev
>
--------------------------
Denis Santelli
denis at santelli.name
www.santelli.name
34 rue de Bagnolet
75020 Paris
09 50 77 20 17
06 72 29 36 05
--------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate-dev/attachments/20070503/0281d560/attachment.html>
More information about the textmate-dev
mailing list