Hi,
I have been experimenting with setting up my standard html directory
structure on Dropbox and then adding a Menu Script to the New•Project…
menu item that then copies that directory to wherever I want it when I
create a project. This works great but then I need to enter a project
name and manually add the directories files and folders to the project
window.
Here is what I have so far:
on menuselect(menuName, itemName)
if menuName = "New" and itemName = "Project…" then
set home_path to path to home folder as string
set dir_path to home_path & "Dropbox:html5_dir_structure"
set proj_name to text returned of (display dialog "What should
this
project be called?" default answer "New Project")
set root to choose folder with prompt "Where should this
project be
located?"
tell application "Finder"
set tempholder to duplicate folder dir_path to root
set the name of tempholder to proj_name
end tell
end if
end menuselect
Ideally, I would like the script to save the BBEdit project file using
the proj_name into the newly created project folder and then populate
the project window with the files and folders in that directory.
Is there a way to script BBEdit to do the last 2 steps automatically?
Thanks for any help!
Brian
--
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>