Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Copy text document paths in the active BBEdit window to clipboard
Copy paths of all open text documents in the active BBEdit window to your clipboard
tell application "BBEdit"
set mydocs to every text document in window 1
set urls to ""
repeat with doc in mydocs
set myurl to (URL of doc)
if (myurl is not missing value) then
set myurl to ((characters 8 thru -1 of myurl) as string)
set urls to urls & {myurl} & "
end if
end repeat
end tell
if (urls is equal to "") then
set the clipboard to urls
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.