So, what I want to do is to be able to select a collection in a
project window in BBEdit, and then select a folder in an Interarchy
window (my SFTP client of choice) and then run an AppleScript to
synchronize their content.
And by synchronize, I mean that the script should empty the collection
in the project window in BBEdit, and then ask Interarchy for the
content of the selected folder. For every result for that list, I
would want to create a SFTP linked project item if it is a file, and a
new empty collection if it is a folder.
Am I making myself clear? Running the script would only list one
remote directory in Interarchy, and replace the content of one BBEdit
collection in the project. I've used AppleScript for decades, but not
often enough to be comfortable in finding out syntaxes... This is what
I have so far, not much:
tell application "BBEdit"
set selectedProjectItems to selected items of project window 1
if (count of selectedProjectItems) is not 1 then return
set mySelection to item 1 of selectedProjectItems
if class of mySelection is project collection then
end if
end tell
So, in the empty block there, I would need code for deleting every
project item of mySelection. Then I need to start talking to
Interarchy (which I'm not expecting you to help med with :)
So, anyone got any great ideas? :)
--
--
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>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.