text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
set AppleScript's text item delimiters to ".git" | Open%20Selection%20in%20GitHub.applescript |
set theBlobURL to the front text item of theRepoURL & "/blob/" & theHash & "/" & theRepoRelativePath | Open%20Selection%20in%20GitHub.applescript |
set theAnchor to "L" & the first item in theLineNumbers | Open%20Selection%20in%20GitHub.applescript |
if (count of theLineNumbers) > 1 and the first item in theLineNumbers ≠ the last item in theLineNumbers then | Open%20Selection%20in%20GitHub.applescript |
set theAnchor to theAnchor & "-" & the last item in theLineNumbers | Open%20Selection%20in%20GitHub.applescript |
tell application "System Events" to open location theBlobURL & "#" & theAnchor | Open%20Selection%20in%20GitHub.applescript |
set XProtectApp to do shell script "defaults read /Library/Apple/System/Library/CoreServices/XProtect.app/Contents/version.plist CFBundleShortVersionString" | GetSysInfo11-12.scpt |
set XProtectAppDate to do shell script "GetFileInfo -d /Library/Apple/System/Library/CoreServices/XProtect.app/Contents/version.plist" | GetSysInfo11-12.scpt |
display dialog tab & tab & tab & MacOSName & " " & MacOSVers & " (" & MacOSBuild & ")" & return & return & "Component " & tab & tab & "Version " & tab & tab & "Updated " & return & "XProtect " & tab & tab & XProtectVers & tab & tab & XProtectDate & return & "XProtect App " & tab & XProtectApp & tab & tab & tab & XProte... | GetSysInfo11-12.scpt |
set _sel to the selection | Create%20OF%20Tasks.applescript |
set _lines to lines in selection | Create%20OF%20Tasks.applescript |
set tasks_added to {} | Create%20OF%20Tasks.applescript |
repeat with _line in _lines | Create%20OF%20Tasks.applescript |
if length of _line is not 0 then | Create%20OF%20Tasks.applescript |
my makeOFTask(_line as text) | Create%20OF%20Tasks.applescript |
set end of tasks_added to _line as text | Create%20OF%20Tasks.applescript |
my growlNotify(tasks_added) | Create%20OF%20Tasks.applescript |
on makeOFTask(_text) | Create%20OF%20Tasks.applescript |
parse tasks with transport text _text | Create%20OF%20Tasks.applescript |
end makeOFTask | Create%20OF%20Tasks.applescript |
on growlNotify(tasks_added) | Create%20OF%20Tasks.applescript |
set _count to length of tasks_added | Create%20OF%20Tasks.applescript |
set tasks_added to tasks_added as text | Create%20OF%20Tasks.applescript |
set growl_running to (count of (every process whose name is "Growl")) > 0 | Create%20OF%20Tasks.applescript |
set subj to (_count as text) & " Tasks Added" | Create%20OF%20Tasks.applescript |
set msg to tasks_added | Create%20OF%20Tasks.applescript |
if growl_running then | Create%20OF%20Tasks.applescript |
set the allNotificationsList to {"Tasks Added"} | Create%20OF%20Tasks.applescript |
register as application "OF-BBEdit" all notifications allNotificationsList default notifications allNotificationsList icon of application "OmniFocus" | Create%20OF%20Tasks.applescript |
notify with name "Tasks Added" title subj description msg application name "OF-BBEdit" | Create%20OF%20Tasks.applescript |
property timeToSetOffset : 0 * days -- number of seconds to set time. | Today.scpt |
fmGUI_ManageSecurity_AccessRecord_GetCalc({calcFor:"view"}) | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
on fmGUI_ManageSecurity_AccessRecord_GetCalc(prefs) | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
fmGUI_ManageSecurity_AccessRecord_OpenCalc(prefs) | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
if calcFor of prefs is equal to "field" then | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
if name of window 1 is not "Custom Field Privileges" then error "must be on specify calculation window" number -1024 | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
set calcValue to my fmGUI_ManageSecurity_AccessRecord_GetFieldPriv({}) | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
if name of window 1 is not "Specify Calculation" then error "must be on specify calculation window" number -1024 | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
set calcValue to value of text area 1 of scroll area 1 of splitter group 1 of window 1 | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
click button "Cancel" of window 1 | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
return calcValue | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
error "unable to fmGUI_ManageSecurity_AccessRecord_GetCalc - " & errMsg number errNum | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
end fmGUI_ManageSecurity_AccessRecord_GetCalc | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
tell application "htcLib" to fmGUI_ManageSecurity_AccessRecord_GetFieldPriv(prefs) | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
tell application "htcLib" to fmGUI_ManageSecurity_AccessRecord_OpenCalc(prefs) | fmGUI_ManageSecurity_AccessRecord_GetCalc.applescript |
set win1Bounds to {790, 23, 1677, 520} # top finder window | applescript%20resize%20Finder%20windows.applescript |
set win2Bounds to {790, 521, 1677, 1049} # lower window | applescript%20resize%20Finder%20windows.applescript |
set winTarget01 to (path to desktop folder) | applescript%20resize%20Finder%20windows.applescript |
set winTarget02 to (path to downloads folder) | applescript%20resize%20Finder%20windows.applescript |
set _finder_window_count to the count of (the windows of application "Finder") | applescript%20resize%20Finder%20windows.applescript |
log "Number of Finder windows is " & _finder_window_count | applescript%20resize%20Finder%20windows.applescript |
set _finder_window_count_after_toggle to the count of (the windows of application "Finder") | applescript%20resize%20Finder%20windows.applescript |
log "Number after toggle " & _finder_window_count_after_toggle | applescript%20resize%20Finder%20windows.applescript |
if _finder_window_count < _finder_window_count_after_toggle then | applescript%20resize%20Finder%20windows.applescript |
log "Get info window was open - closing it." | applescript%20resize%20Finder%20windows.applescript |
log "Number of Finder windows after get info test is " & _finder_window_count | applescript%20resize%20Finder%20windows.applescript |
if _finder_window_count > 2 then | applescript%20resize%20Finder%20windows.applescript |
set currentDir to (target of Finder window 1) | applescript%20resize%20Finder%20windows.applescript |
set currentDir to (path to desktop folder) | applescript%20resize%20Finder%20windows.applescript |
click menu item "Merge All Windows" of menu "Window" of menu bar 1 | applescript%20resize%20Finder%20windows.applescript |
click menu item "Close Tab" of menu "File" of menu bar 1 | applescript%20resize%20Finder%20windows.applescript |
set winTarget02 to currentDir | applescript%20resize%20Finder%20windows.applescript |
set newWin02 to make new Finder window | applescript%20resize%20Finder%20windows.applescript |
tell newWin02 | applescript%20resize%20Finder%20windows.applescript |
if toolbar visible ≠ true then set toolbar visible to true | applescript%20resize%20Finder%20windows.applescript |
set its target to winTarget02 | applescript%20resize%20Finder%20windows.applescript |
if its current view ≠ list view then set its current view to list view | applescript%20resize%20Finder%20windows.applescript |
else if _finder_window_count = 2 then | applescript%20resize%20Finder%20windows.applescript |
else if _finder_window_count = 1 then | applescript%20resize%20Finder%20windows.applescript |
else if _finder_window_count = 0 then | applescript%20resize%20Finder%20windows.applescript |
set newWin01 to make new Finder window | applescript%20resize%20Finder%20windows.applescript |
tell newWin01 | applescript%20resize%20Finder%20windows.applescript |
set its target to winTarget01 | applescript%20resize%20Finder%20windows.applescript |
temporaryPathWithPrefixAndFolderName("MyPrefix", "Test") | temporaryPathWithPrefixAndFolderName.applescript |
on temporaryPathWithPrefixAndFolderName(prefix, folderName) | temporaryPathWithPrefixAndFolderName.applescript |
set rand3 to (round (random number from 100 to 999)) as text | temporaryPathWithPrefixAndFolderName.applescript |
set randomText to rand1 & rand2 & rand3 | temporaryPathWithPrefixAndFolderName.applescript |
set fileName to ((prefix & randomText) as text) | temporaryPathWithPrefixAndFolderName.applescript |
set temporaryFolderPath to (path to temporary items folder from user domain) as text | temporaryPathWithPrefixAndFolderName.applescript |
if folderName is false then | temporaryPathWithPrefixAndFolderName.applescript |
set parentFolderPath to temporaryFolderPath | temporaryPathWithPrefixAndFolderName.applescript |
set parentFolderPath to temporaryFolderPath & folderName & ":" | temporaryPathWithPrefixAndFolderName.applescript |
if (exists folder parentFolderPath) is false then | temporaryPathWithPrefixAndFolderName.applescript |
make new folder at the end of folders of folder temporaryFolderPath with properties {name:folderName} | temporaryPathWithPrefixAndFolderName.applescript |
set tempPath to parentFolderPath & fileName | temporaryPathWithPrefixAndFolderName.applescript |
set tempPath to parentFolderPath & fileName & "_" & (rNumber as text) | temporaryPathWithPrefixAndFolderName.applescript |
if (exists file tempPath) is false then | temporaryPathWithPrefixAndFolderName.applescript |
if (exists folder tempPath) is false then | temporaryPathWithPrefixAndFolderName.applescript |
return tempPath | temporaryPathWithPrefixAndFolderName.applescript |
end temporaryPathWithPrefixAndFolderName | temporaryPathWithPrefixAndFolderName.applescript |
property ScriptName : "logLevelScript_Test" | logLevel.applescript |
logLEVEL(5, "SomeMessage") | logLevel.applescript |
set maxXcount to 5 | logLevel.applescript |
set logName to ScriptName & "_" | logLevel.applescript |
set xCount to maxXcount - level + 1 | logLevel.applescript |
repeat with i from 1 to xCount | logLevel.applescript |
set logName to logName & "X" | logLevel.applescript |
logConsole(logName, someMsg) | logLevel.applescript |
set phone_list to {"475-5556145", "5559132", "5557040", "317-5551437", "5556421"} | Script 14-4.applescript |
repeat with i from 1 to count phone_list | Script 14-4.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.