text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
if title of b is "Preferences" then | btsync_control.scpt |
set prefButton to b | btsync_control.scpt |
click prefButton | btsync_control.scpt |
set checkboxList to every checkbox of window 1 of process "BitTorrent Sync" | btsync_control.scpt |
repeat with c in checkboxList | btsync_control.scpt |
if title of c contains "limit" then | btsync_control.scpt |
if value of c is not equal to limitBTsync then | btsync_control.scpt |
click c | btsync_control.scpt |
tell process frontApp to set frontmost to true | btsync_control.scpt |
tell application "nvALT" | NV-PasteAsNewNote.applescript |
tell application "System Events" to key code 9 using {command down, shift down} | NV-PasteAsNewNote.applescript |
set addr to "https://photos.google.com/" | SelectOrOpen_photo.applescript |
set found to 0 | SelectOrOpen_photo.applescript |
if (URL of t as string) contains addr then | SelectOrOpen_photo.applescript |
set (active tab index of window n) to i | SelectOrOpen_photo.applescript |
set (index of window n) to 1 | SelectOrOpen_photo.applescript |
set found to 1 | SelectOrOpen_photo.applescript |
set n to n + 1 | SelectOrOpen_photo.applescript |
if found = 0 then | SelectOrOpen_photo.applescript |
open location addr | SelectOrOpen_photo.applescript |
tell application "WebPomodoro" | Launch_WebPomodoro_1280x720.applescript |
tell process "WebPomodoro" | Launch_WebPomodoro_1280x720.applescript |
set topWindow to item 1 of (every window whose subrole is "AXStandardWindow") | Launch_WebPomodoro_1280x720.applescript |
set size of topWindow to {1280, 720} | Launch_WebPomodoro_1280x720.applescript |
on ImportActionForVersions(imageSel) | keywords from EXIF.applescript |
set cameraModel to value of EXIF tag "Model" | keywords from EXIF.applescript |
set lensModel to value of EXIF tag "LensModel" | keywords from EXIF.applescript |
set lensModel to "" | keywords from EXIF.applescript |
make new keyword with properties {name:cameraModel} | keywords from EXIF.applescript |
make new keyword with properties {name:lensModel, parents:{cameraModel}} | keywords from EXIF.applescript |
end ImportActionForVersions | keywords from EXIF.applescript |
offset of "@" in "email@host.com" | offset of "@" in "email@host.com".applescript |
display dialog "Dialog One" | 027_01_preventing_catching_errors-try_command.applescript |
disply | 027_01_preventing_catching_errors-try_command.applescript |
display notification "Oops!: " & errorText | 027_01_preventing_catching_errors-try_command.applescript |
display dialog "Dialog Two" | 027_01_preventing_catching_errors-try_command.applescript |
display dialog "Dialog Three" | 027_01_preventing_catching_errors-try_command.applescript |
on index_of_item_in_sorted_list(the_list, the_item) | Script 29-9.applescript |
script FastList | Script 29-9.applescript |
property fast_list : the_list | Script 29-9.applescript |
set lo to 0 | Script 29-9.applescript |
set hi to length of FastList's fast_list | Script 29-9.applescript |
repeat while lo < hi | Script 29-9.applescript |
set mid to (lo + hi) div 2 | Script 29-9.applescript |
if the_item < FastList's fast_list's item (mid + 1) then | Script 29-9.applescript |
set hi to mid | Script 29-9.applescript |
set lo to mid + 1 | Script 29-9.applescript |
if item lo of FastList's fast_list ≠ the_item then | Script 29-9.applescript |
error "Item not found." number -1728 from the_item | Script 29-9.applescript |
return lo | Script 29-9.applescript |
end index_of_item_in_sorted_list | Script 29-9.applescript |
set sourceFile to (current application's NSURL's fileURLWithPath:"/Users/ionah/Desktop/source.scpt") | lns2.scpt |
set destFile to (current application's NSURL's fileURLWithPath:"/Users/ionah/Desktop/dest.scpt") | lns2.scpt |
set {theScript, theError} to current application's OSAScript's alloc()'s initWithContentsOfURL:sourceFile |error|:(reference) | lns2.scpt |
set {theResult, theError} to theScript's writeToURL:destFile ofType:(current application's OSAStorageScriptType) usingStorageOptions:(current application's OSANull) |error|:(reference) | lns2.scpt |
my displayNotif("Script Debugger", "Les préférences ont été sauvegardées", "Cliquez ici pour ouvrir le dossier de sauvegarde.") | lns2.scpt |
on displayNotif(theTitle, theSub, theInfo) | lns2.scpt |
set theNotif to current application's NSUserNotification's alloc()'s init() | lns2.scpt |
tell theNotif | lns2.scpt |
its setSubtitle:theSub | lns2.scpt |
its setInformativeText:theInfo | lns2.scpt |
its setSoundName:"Purr" | lns2.scpt |
its setHasActionButton:true | lns2.scpt |
its setActionButtonTitle:"Original" | lns2.scpt |
its setOtherButtonTitle:"Sauvegarde" | lns2.scpt |
tell current application's NSUserNotificationCenter's defaultUserNotificationCenter() | lns2.scpt |
its setDelegate:me | lns2.scpt |
its deliverNotification:theNotif | lns2.scpt |
end displayNotif | lns2.scpt |
on userNotificationCenter:theCenter shouldPresentNotification:theNotif | lns2.scpt |
return yes | lns2.scpt |
end userNotificationCenter:shouldPresentNotification: | lns2.scpt |
on userNotificationCenter:theCenter didActivateNotification:theNotif | lns2.scpt |
set thePath to current application's NSString's stringWithString:"~/Library/Application Support/Script Debugger 6" | lns2.scpt |
set thePath to (thePath's stringByExpandingTildeInPath()) | lns2.scpt |
(theWorkspace's openFile:thePath) | lns2.scpt |
end userNotificationCenter:didActivateNotification: | lns2.scpt |
set df to current application's NSDateFormatter's new() | lns2.scpt |
df's setDateFormat:"yyyy.MM.dd" | lns2.scpt |
set dateString to (df's stringFromDate:(current application's NSDate's |date|())) as text | lns2.scpt |
tell application id "com.latenightsw.ScriptDebugger6" -- Script Debugger.app | lns2.scpt |
if script type is in {bundled compiled script, script application} then | lns2.scpt |
set marketing version to dateString | lns2.scpt |
set theObj to anArray's shuffledArray()'s firstObject() | lns2.scpt |
use framework "GameplayKit" | lns2.scpt |
set AppleScript's text item delimiters to {" ", tab, return, ",", "."} | lns2.scpt |
every text item of myText | lns2.scpt |
set sourceString to "humpty dumpty sat on wall" | lns2.scpt |
set aString to NSString's stringWithString:sourceString | lns2.scpt |
set anArray to (aString's componentsSeparatedByString:" ") as list | lns2.scpt |
use script "Text Factory" | lns2.scpt |
use theLib : script "BridgePlus" | lns2.scpt |
set a1 to {} | lns2.scpt |
repeat with a0 from 33 to 255 | lns2.scpt |
set end of a1 to character id a0 | lns2.scpt |
set a1 to a1 as text | lns2.scpt |
set a2 to theLib's wordsOfString:a1 | lns2.scpt |
set a3 to words of a1 | lns2.scpt |
set theString to current application's NSString's stringWithString:"hello, world" | lns2.scpt |
set theWords to theString's componentsSeparatedByCharactersInSet:(current application's NSCharacterSet's alphanumericCharacterSet()'s invertedSet()) | lns2.scpt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.