Greetings:

I'm new to shell scripting, and have run into a problem with an early effort.
The script is very simple: it creates a file in one location, writes 
information to it, performs 

ls -la ~/Documents,

appends the result to the file, moves the file to a second location, appends 
information to the file, opens the file in BBEdit, sleeps 10 seconds, then 
closes the file.
That's the desired result. I can do everything except close the file once it's 
open in BBEdit.
What's the solution? Is it using kill? If so, how do I find the PID for the 
file while it's open in BBEdit?
Here are the final lines of the script:

open -a /Applications/BBEDit.app $LOC2/$FILE 

sleep 10

kill $FILE

If this is the wrong place to ask these questions, please suggest other venues.
Thanks for any help you give.


Regards,

Marc

-- 
-- 
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