We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Processing 1.0 and textmate
Page Index Toggle Pages: 1
Processing 1.0 and textmate (Read 2867 times)
Processing 1.0 and textmate
Nov 26th, 2008, 10:50am
 
Hi,


yesterday i downloaded the new release, it seems pretty good(apparently a little less stable, i'm sure they will fix it soon) but it has some little problems with the old script to run processing from textmate.

first of all I obviously changed the Processing version from "Processing 0159" to "Processing", after that i have changed another little thing. apparently everytime you try to run a sketch from textmate it open a new Processing window to run the sketch, with the old version it never happened.

Anyway i solved this issue removing the first line on my script and now everything seems working.

this is the script, if anybody knows a better solution pls post a reply here.

Q


# open -a Processing ${TM_FILEPATH} << DELETE THIS LINE
osascript <<-APPLESCRIPT
tell application "Processing" to activate
tell application "System Events" to tell process "Processing"
delay 0.3
keystroke "r" using command down
end tell
APPLESCRIPT
Re: Processing 1.0 and textmate
Reply #1 - Nov 26th, 2008, 3:52pm
 
q wrote on Nov 26th, 2008, 10:50am:
yesterday i downloaded the new release, it seems pretty good(apparently a little less stable, i'm sure they will fix it soon)

Not less stable as far as we know, please file bug reports if you're having trouble. I can't fix problems unless they're reported.
Re: Processing 1.0 and textmate
Reply #2 - Nov 26th, 2008, 9:56pm
 
Hi,

I use this to run in Processing:

Code:
osascript -e 'tell application "Processing" to activate' -e 'tell application "System Events" to tell process "Processing"' -e 'keystroke "r" using {command down}' -e 'end tell' 



and this to present in Processing:

Code:
osascript -e 'tell application "Processing" to activate' -e 'tell application "System Events" to tell process "Processing"' -e 'keystroke "r" using {command down, shift down}' -e 'end tell' 



Sparky
Re: Processing 1.0 and textmate
Reply #3 - Dec 1st, 2008, 6:32pm
 
what do you mean with "present in processing" ?
Re: Processing 1.0 and textmate
Reply #4 - Dec 16th, 2008, 10:56pm
 
By present I mean run the sketch full screen
Re: Processing 1.0 and textmate
Reply #5 - Jan 2nd, 2009, 8:29pm
 
Thanks for that, Sparky.  I edited the command in the textmate bundle to include your changes, but it still doesn't work.  Am I the only one, or is anyone else having trouble getting this to work with processing 1.0?
Re: Processing 1.0 and textmate
Reply #6 - Jan 2nd, 2009, 9:14pm
 
That's odd, those are the command I'm using now and it works for me. Perhaps the version of textmate/os you're using is different.
Re: Processing 1.0 and textmate
Reply #7 - Jan 4th, 2009, 3:48am
 
I'm using Mac OS 10.5.6 and TextMate Version 1.5.8 (1496).  I got the bundle using GetBundles.
Re: Processing 1.0 and textmate
Reply #8 - Jan 30th, 2009, 7:25pm
 
For new Processing 1.0.1 the bundle is(and will keep for next versions same, because app name now is only processing):
Code:

open -a ${TM_FILEPATH}
osascript <<-APPLESCRIPT
tell application "Processing" to activate
tell application "System Events" to tell process "Processing"
delay 0.3
keystroke "r" using command down
end tell
APPLESCRIPT
Re: Processing 1.0 and textmate
Reply #9 - Jan 30th, 2009, 7:44pm
 
Here's the same script for present mode as well

Code:
open -a ${TM_FILEPATH} 
osascript <<-APPLESCRIPT
tell application "Processing" to activate
tell application "System Events" to tell process "Processing"
delay 0.3
keystroke "r" using {command down, shift down}
end tell
APPLESCRIPT
Re: Processing 1.0 and textmate
Reply #10 - Jan 31st, 2009, 4:52pm
 
Thanks for the add! For people want textmate with processing 1.0.1 (I corrected first line)

"Run":

Code:

open -a Processing/ ${TM_FILEPATH}
osascript <<-APPLESCRIPT  
tell application "Processing" to activate  
tell application "System Events" to tell process "Processing"  
delay 0.3  
keystroke "r" using {command down, shift down}
end tell  
APPLESCRIPT



"Presentation":

Code:

open -a Processing/ ${TM_FILEPATH}
osascript <<-APPLESCRIPT  
tell application "Processing" to activate  
tell application "System Events" to tell process "Processing"  
delay 0.3  
keystroke "r" using {command down, shift down}
end tell  
APPLESCRIPT

To have presentation, add manually a "third command" in the bundle of processing.

original thread with all instructions step by step:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Integrate;action=display;num=1222809643;start=0#0

And just change the code adapted new 1.0.1 version.
(In theory will be not have to change bundle in next releases because processing app will remain with out version in name of the app.)
Page Index Toggle Pages: 1