text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set AppleScript's text item delimiters to {space, tab} | open_bbedit_selection_with_terminal.applescript |
set vItems to text items of (vLineHead as string) | open_bbedit_selection_with_terminal.applescript |
set AppleScript's text item delimiters to vDelimiters | open_bbedit_selection_with_terminal.applescript |
if vItems = {} then | open_bbedit_selection_with_terminal.applescript |
error "Please select a valid path." | open_bbedit_selection_with_terminal.applescript |
set vPath to last item of vItems | open_bbedit_selection_with_terminal.applescript |
set vPaths to {vPath} | open_bbedit_selection_with_terminal.applescript |
else -- Open each line of the selection separately. | open_bbedit_selection_with_terminal.applescript |
set vPaths to paragraphs of contents of vSelection | open_bbedit_selection_with_terminal.applescript |
repeat with vPath in vPaths | open_bbedit_selection_with_terminal.applescript |
set vEscapedPath to my escapePath(my trim(vPath)) | open_bbedit_selection_with_terminal.applescript |
if vEscapedPath is not "" then | open_bbedit_selection_with_terminal.applescript |
set vCommand to "open " & vEscapedPath | open_bbedit_selection_with_terminal.applescript |
my runInTerminal(vCommand) | open_bbedit_selection_with_terminal.applescript |
global theDownloadGo, appsup, pathTOCURLfile, pathTOCURLedfile, thedownloadsite, ver, update_v | updateApp.applescript |
property current_version : "1.09" | updateApp.applescript |
on initializeMe_SM() | updateApp.applescript |
set theDownloadGo to false | updateApp.applescript |
set pathTOCURLfile to (appsup & "dp.pl") | updateApp.applescript |
set pathTOCURLedfile to (appsup & "CURLfile.yah") | updateApp.applescript |
end initializeMe_SM | updateApp.applescript |
on updateMePlus(isLaunch) | updateApp.applescript |
initializeMe_SM() | updateApp.applescript |
set visible of progress indicator 1 of window "updatewindow" to false | updateApp.applescript |
set the text color of text view 1 of scroll view 1 of window "updatewindow" to "white" | updateApp.applescript |
set title of button "closeupdate" of window "updatewindow" to (localized string "CLOSE_TEXT") | updateApp.applescript |
set the contents of text view 1 of scroll view 1 of window "updatewindow" to "" | updateApp.applescript |
set update_f to (homeRootURL & "toDoList.html") as string | updateApp.applescript |
do shell script ("rm " & quoted form of (pathTOCURLedfile)) | updateApp.applescript |
set pingMySite to (do shell script "ping -t3 -o audimate.me") as string | updateApp.applescript |
do shell script ("perl " & quoted form of pathTOCURLfile & " " & quoted form of update_f & " " & quoted form of (pathTOCURLedfile)) | updateApp.applescript |
set update_c to do shell script ("cat " & quoted form of (pathTOCURLedfile)) | updateApp.applescript |
set current_version_int to cv_string2int(current_version) | updateApp.applescript |
lastCheckForConnection() | updateApp.applescript |
set update_c_download to (item 2 of split(update_c, "<!--download-->")) as string | updateApp.applescript |
set update_c_complete to (item 2 of split(update_c, "<!--complete-->")) as string | updateApp.applescript |
set update_c_incomplete to (item 2 of split(update_c, "<!--incomplete-->")) as string | updateApp.applescript |
set update_c to "" | updateApp.applescript |
set update_v to (item 1 of split(update_c_download, "<br><br>")) as string | updateApp.applescript |
set update_v to (last item of split(update_v, "<!--v")) as string | updateApp.applescript |
set update_v to split(update_v, "-->") as string | updateApp.applescript |
set update_v_int to cv_string2int(update_v) | updateApp.applescript |
set changelog_text to update_c_complete | updateApp.applescript |
set changelog_text to item 1 of split(changelog_text, ("<!--v" & current_version & "-->")) as string | updateApp.applescript |
set changelog_text_splitter to item 2 of split(changelog_text, ("<h4>")) as string | updateApp.applescript |
set changelog_text_splitter to item 1 of split(changelog_text_splitter, (" />")) as string | updateApp.applescript |
set changelog_text to snr(changelog_text, changelog_text_splitter, "") as string | updateApp.applescript |
set enabled of button "downloadupdate" of window "updatewindow" to true | updateApp.applescript |
set changelog_text to snr(changelog_text, " ", "") | updateApp.applescript |
set changelog_text to snr(changelog_text, "<li>", " • ") | updateApp.applescript |
set changelog_text to snr(changelog_text, "</li>", "") | updateApp.applescript |
set changelog_text to snr(changelog_text, "<i>", "(") | updateApp.applescript |
set changelog_text to snr(changelog_text, "</i>", ")") | updateApp.applescript |
set changelog_text to snr(changelog_text, "<ul>", "<br>") | updateApp.applescript |
set changelog_text to snr(changelog_text, "</b>", "") | updateApp.applescript |
set changelog_text to snr(changelog_text, "</ul>", "<br>") | updateApp.applescript |
set changelog_text to snr(changelog_text, "<b>", "") | updateApp.applescript |
set changelog_text to snr(changelog_text, "</ul>", "") | updateApp.applescript |
set changelog_text to snr(changelog_text, "<br><br>", " ") | updateApp.applescript |
set changelog_text to snr(changelog_text, "<div style=\"margin-top:5px; display:none; border:0px;\"><p>", "") | updateApp.applescript |
set changelog_text to snr(changelog_text, "<h4> />", "") | updateApp.applescript |
set changelog_text to snr(changelog_text, "</h4>", "") | updateApp.applescript |
set changelog_text to snr(changelog_text, "</p>", "") | updateApp.applescript |
set changelog_text to snr(changelog_text, "</div>", "") | updateApp.applescript |
set update_v_int_1 to (item 1 of split(update_v_int, ",")) as string | updateApp.applescript |
set current_version_int_1 to (item 1 of split(current_version_int, ",")) as string | updateApp.applescript |
set update_v_int_2 to (item 2 of split(update_v_int, ",")) as string | updateApp.applescript |
set current_version_int_2 to (item 2 of split(current_version_int, ",")) as string | updateApp.applescript |
set update_v_int_2 to split(update_v_int_2, ".") as string | updateApp.applescript |
set current_version_int_2 to split(current_version_int_2, ".") as string | updateApp.applescript |
if (count (every character of current_version_int_1)) is greater than (count (every character of update_v_int_1)) then | updateApp.applescript |
repeat with artichoke from 1 to ((count (every character of current_version_int_1)) - (count (every character of update_v_int_1))) | updateApp.applescript |
set update_v_int_1 to (update_v_int_1 & "0") as string | updateApp.applescript |
else if (count (every character of current_version_int_1)) is less than (count (every character of update_v_int_1)) then | updateApp.applescript |
repeat with artichoke from 1 to ((count (every character of update_v_int_1)) - (count (every character of current_version_int_1))) | updateApp.applescript |
set current_version_int_1 to (current_version_int_1 & "0") as string | updateApp.applescript |
if (count (every character of current_version_int_2)) is greater than (count (every character of update_v_int_2)) then | updateApp.applescript |
repeat with artichoke from 1 to ((count (every character of current_version_int_2)) - (count (every character of update_v_int_2))) | updateApp.applescript |
if update_v_int_2 is not "!" then | updateApp.applescript |
set update_v_int_2 to (update_v_int_2 & "0") as string | updateApp.applescript |
else if (count (every character of current_version_int_2)) is less than (count (every character of update_v_int_2)) then | updateApp.applescript |
repeat with artichoke from 1 to ((count (every character of update_v_int_2)) - (count (every character of current_version_int_2))) | updateApp.applescript |
if current_version_int_2 is not "!" then | updateApp.applescript |
set current_version_int_2 to (current_version_int_2 & "0") as string | updateApp.applescript |
if (update_v_int_1) is greater than (current_version_int_1) then | updateApp.applescript |
finishUpdateLoad(update_c_download) | updateApp.applescript |
display panel window "updatewindow" attached to window "homeWindow" | updateApp.applescript |
else if (update_v_int_1) is less than (current_version_int_1) then | updateApp.applescript |
set changelog_text to item 1 of split(changelog_text, ("<!--v" & update_v & "-->")) as string | updateApp.applescript |
set contents of (text field 1 of window "updatewindow") to (localized string "RUNNINGNEWEST") | updateApp.applescript |
if isLaunch is false then | updateApp.applescript |
else if (update_v_int_1) is equal to (current_version_int_1) then | updateApp.applescript |
if (update_v_int_2) is equal to (current_version_int_2) then | updateApp.applescript |
else if (update_v_int_2) is "!" then | updateApp.applescript |
else if (current_version_int_2) is "!" then | updateApp.applescript |
else if (update_v_int_2 as integer) is greater than (current_version_int_2 as integer) then | updateApp.applescript |
else if (update_v_int_2 as integer) is less than (current_version_int_2 as integer) then | updateApp.applescript |
set changelog_text_l to every paragraph of changelog_text | updateApp.applescript |
repeat with ch_loopV from 1 to (count changelog_text_l) | updateApp.applescript |
if ((item ch_loopV of changelog_text_l) as string) starts with "<!--v" then | updateApp.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.