Interacting with Project Builder via AppleScript
Interacting with Project Builder via AppleScript
- Subject: Interacting with Project Builder via AppleScript
- From: Angela Miro <email@hidden>
- Date: Mon, 26 Aug 2002 16:02:56 +1000
Hi,
I have been trying to get a simple apple script going with the editor
in Project Builder to grab a selection of text modify it and paste
the modified text back into the active selection in Project Builder.
I am using MacOSX Jaguar 6C115 with the standard Developer tools of
Jaguar installed.
I can achieve this with BBEdit 6.5 but I am having problems with
Project Builder. Here is the script which I am using which works with
BBEdit:
tell application "BBEdit 6.5"
activate
get selection as text
copy result to tempString
set shellResult to do shell script ("python
/Users/angela/bin/simplescript.py \"" & tempString & "\"")
set text of selection to shellResult
end tell
However if I modify the above script and instead 'tell application
"Project Builder"' I get the following error:
Project Builder got an error:
NSCannotCreateScriptCommandError.
Even simpler scripts seem to fail with Project Builder. Can someone
tell me what am I doing wrong?
Thank you,
Angela
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.