Hello everyone,

I’m using AppleScript + BBEdit to “refresh” all the files in the “Release” 
directory with the contents of all the files in the “Prototype” directory. I do 
this “transfer of the file contents” (instead of simply copying and 
over-writing the files), to preserve the entire git history of each “Release” 
file.

I have explored everywhere I can, but I can’t find any way to DESELECT/UNSELECT 
selected text.

I’m particularly interested in including a “deselect all” in a script like 
this, which leaves the entire contents of the “Prototype” file selected and 
highlighted after I have copied the “Prototype” file to the “Release” file.

Of course, I’ll also appreciate any comments regarding a BETTER way to do this.

Thank you,

Alfredo



tell application "BBEdit"
        activate
        open {file “Alfredo 
HD:Users:alfredo:Documents:Prototype:Adager_API:adager_api.c”} with LF 
translation
        select text 1 of project window 1
        copy selection
end tell

# . . . Other stuff (irrelevant for this topic) . . .

tell application "BBEdit"
        activate
        open {file "Alfredo 
HD:Users:alfredo:Documents:Release:Adager_API:adager_api.c"} with LF translation
        select text 1 of project window 1
        paste
        close project window 1 saving yes
end tell

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://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].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to