• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Interacting with Project Builder via AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Interacting with Project Builder via AppleScript
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: [the great right-tool-for-the-job debate] Re: Running Subroutines from Other Scripts
  • Next by Date: OE reply to list
  • Previous by thread: RE: (X10) Exchanging events between OS 9 and OS X machines
  • Next by thread: Re: Interacting with Project Builder via AppleScript
  • Index(es):
    • Date
    • Thread