Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it possible to script Project Builder?



I'm trying to write an AppleScript that opens a project and builds a specific target. Since I don't really know much about AppleScript, I have been unsuccessful after having worked on this for quite some time.

This is my latest attempt:

-- Script to build subproject
tell application "Project Builder"
set projectList to projects
repeat with p in projectList
if (name of p) is equal to "MyProject" then
build first target of p
end if
end repeat
end tell


And this is the error message:

Project Builder got an error: NSReceiversCantHandleCommandScriptError


I suspect that there must be something embarrassingly obvious that I'm missing...


With kind regards

Piers Uso Walter <email@hidden>
ilink Kommunikationssysteme GmbH
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.