Our build process is based on a bash script.  We manage multiple
client projects. From terminal calling the build script looks like
mksite -c client. client is the name of the source and destination
folders, but most importantly for this exercise it is also the name of
the project, so the project file in this case would be named
client.bbprojectd. We generally have multiple projects open at the
same time.

What I want to be able to do is pass the name of the current project
to our build script, but I don't know how, or if it is possible to
access information in BBEdit and pass it to a shell script. If needed
I will write an applescript that will pass the name of the current
project to our build script, but I'm new to applescript and I've no
idea how to get that particulat piece of information, or how (or if)
it's possible to pass information from an applescript to a shell
script as an argument.

So, some specific questions:
1. Is it possible to pass the name of the current project to a shell
script as a command line argument?  If not is this piece of
information available in applescript? Can a simple example of this be
provided?
2. Assuming I need to write an applescript to do this, are there any
examples available that demonstrate how to pass information from
BBEdit to applescript, and then call a shell script?

Or perhaps I'm attempting to go about this in the wrong way?

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to