commit stringlengths 40 40 | old_file stringlengths 2 205 | new_file stringlengths 2 205 | old_contents stringlengths 0 32.9k | new_contents stringlengths 1 38.9k | subject stringlengths 3 9.4k | message stringlengths 6 9.84k | lang stringlengths 3 13 | license stringclasses 13
values | repos stringlengths 6 115k |
|---|---|---|---|---|---|---|---|---|---|
a5ec07ebeb796e4d0a8c6ba1e6f653f20820ea56 | scripts/resetsimulator.applescript | scripts/resetsimulator.applescript | tell application "System Events" to tell process "iOS Simulator"
activate
set frontmost to true
click menu item "Reset Content and Settings" of menu 0 of menu bar item "iOS Simulator" of menu bar 1
delay 0.1
tell application "System Events" to key code 36
-- click button "Reset" of window ""
return
end tell
| tell application "System Events" to tell process "Simulator"
activate
set frontmost to true
click menu item "Reset Content and Settings" of menu 0 of menu bar item "Simulator" of menu bar 1
delay 0.1
tell application "System Events" to key code 36
-- click button "Reset" of window ""
return
end tell
| Fix simulator script | Fix simulator script
| AppleScript | mit | keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles |
b14b563abf63764488e4dab83bc8d6088c8cb6dc | alfred_script.applescript | alfred_script.applescript | on alfred_script(q)
tell application "Google Chrome"
if q is "" or q is "p" or q is "pp" or q is "play" or q is "pause" then
set buttonClass to "play"
set execCode to "$('." & buttonClass & "').first().click()"
else if q is "next" or q is "skip" or q is "n" then... | on alfred_script(q)
set AppleScript's text item delimiters to {" "}
tell application "Google Chrome"
if q is "" or q is "p" or q is "pp" or q is "play" or q is "pause" then
set buttonClass to "play"
set execCode to "$('." & buttonClass & "').first().click()"
el... | Fix potential text delimiter bug | Fix potential text delimiter bug
| AppleScript | mit | tangledhelix/focusatwill-in-google-chrome,tangledhelix/focusatwill-in-google-chrome |
93db092c03980b587e6b2b8e4df15352b83d5134 | XcodeWayExtensions/Script/XcodeWayScript.scpt | XcodeWayExtensions/Script/XcodeWayScript.scpt | use scripting additions
use framework "Foundation"
property NSString : a reference to current application's NSString
-- Helper
on myRemoveLastPath(myPath)
set myString to NSString's stringWithString:myPath
set removedLastPathString to myString's stringByDeletingLastPathComponent
removedLastPathString as text
end myRe... | use scripting additions
use framework "Foundation"
property NSString : a reference to current application's NSString
-- Helper
on myRemoveLastPath(myPath)
set myString to NSString's stringWithString:myPath
set removedLastPathString to myString's stringByDeletingLastPathComponent
removedLastPathString as text
end myRe... | Add myGetRemote | Add myGetRemote
| AppleScript | mit | onmyway133/XcodeWay,onmyway133/XcodeWay |
6dcc626d17571f6f56ef38b14a594b376c9ea395 | Release/dmg_growl.applescript | Release/dmg_growl.applescript | on run -- for testing in script editor
process_disk_image("Growl", "/Users/evands/growl/Release/Artwork")
end run
on process_disk_image(volumeName, artPath)
tell application "Finder"
tell disk volumeName
open
tell container window
set current view to icon view
set toolbar visible to false
set sta... | on run -- for testing in script editor
process_disk_image("Growl", "/Users/evands/growl/Release/Artwork")
end run
on process_disk_image(volumeName, artPath)
tell application "Finder"
tell disk volumeName
open
tell container window
set current view to icon view
set toolbar visible to false
set sta... | Set the bounds of the disk image volume window. I'm not sure why this was commented out. Not only have I uncommented it, I also changed the value. | Set the bounds of the disk image volume window. I'm not sure why this was commented out. Not only have I uncommented it, I also changed the value.
| AppleScript | bsd-3-clause | PersonifyInc/growl,incbee/Growl,PersonifyInc/growl,incbee/Growl,incbee/Growl,incbee/Growl,PersonifyInc/growl,PersonifyInc/growl,incbee/Growl,PersonifyInc/growl |
b7ee1c5622c637681081add5a2c8b3e17e4bf09c | automation/mac/pictureit.scpt | automation/mac/pictureit.scpt | #
# This script outlines the basic funcationality needed to build
# an automatic scraper or other chrome automation function. It solves
# several annoying problems with automator and appleScript and should save
# people a bunch of time. It does not catch errors or implement other
# bulletproofing.
#
# It uses goog... | #
# This script outlines the basic funcationality needed to build
# an automatic scraper or other chrome automation function. It solves
# several annoying problems with automator and appleScript and should save
# people a bunch of time. It does not catch errors or implement other
# bulletproofing.
#
# It uses goog... | Update pictureit.scpt | Update pictureit.scpt
Best to put click in /usr/local/bin | AppleScript | apache-2.0 | scarrico/BayAreaFresh,scarrico/BayAreaFresh,scarrico/BayAreaFresh |
aca26bf1a96b26d52a6dd8fc482d0ab5ea9400ed | chrome/lib/controller.scpt | chrome/lib/controller.scpt | on control(keyCode)
set code to "var keyCode = " & keyCode & ";
var event = document.createEvent('Events');
event.initEvent('keydown', true, true);
event.keyCode = keyCode;
event.which = keyCode;
document.dispatchEvent(event);
"
set targetTab to activeTab() of me
executeJavaScript(targetTa... | on control(keyCode)
set code to "var keyCode = " & keyCode & ";
var event = document.createEvent('Events');
event.initEvent('keydown', true, true);
event.keyCode = keyCode;
event.which = keyCode;
document.dispatchEvent(event);
"
set targetTab to activeTab() of me
executeJavaScript(targetTa... | update to use notification center instead of growl | update to use notification center instead of growl
| AppleScript | mit | atsuya/google-music-control |
4c6235ca33932483dd913b7b2abec1b0279b82b1 | Support/inbox.app/Contents/Resources/Scripts/main.scpt | Support/inbox.app/Contents/Resources/Scripts/main.scpt | FasdUAS 1.101.10
k
l
i
I
.aevtoappnull ****
Q
k
r
n
I
0 inputdialog inputDialog
m E n t e r t a s k : ... | FasdUAS 1.101.10
k
l
i
I
.aevtoappnull ****
Q
k
r
n
I
0 inputdialog inputDialog
m E n t e r t a s k : ... | Update inbox applescript | Update inbox applescript
| AppleScript | mit | persquare/TextTasks.tmbundle |
330494b6b28e28be3daae9ea8cc644507c20af1d | resources/config.applescript | resources/config.applescript | -- core configuration --
-- configurable options --
-- limit number of songs to improve efficiency
property resultLimit : 25
-- whether or not to retrieve/display album artwork for each result
property albumArtEnabled : true
-- workflow parameters --
property homeFolder : (path to home folder as text)
property libr... | -- core configuration --
-- configurable options --
-- limit number of songs to improve efficiency
property resultLimit : 25
-- whether or not to retrieve/display album artwork for each result
property albumArtEnabled : true
-- workflow parameters --
property homeFolder : (path to home folder as text)
property libr... | Remove sorting algo in favor of current sort order | Remove sorting algo in favor of current sort order
| AppleScript | mit | caleb531/play-song,caleb531/play-song |
f4df021ff0c4c39d028d488de883bdbbb60396de | CotEditor/InternalScript/openDictionary.applescript | CotEditor/InternalScript/openDictionary.applescript | (*
このスクリプトは、下記のソースを参考にさせていただきました。
http://piza.2ch.net/log2/mac/kako/957/957215209.html
*)
tell application "Finder"
set the script_editor to application file id "ToyS"
set file_path to path to frontmost application
ignoring application responses
open file_path using script_editor
end ignoring
end tell
| (*
==============================================================================
openDictionary.applescript
CotEditor
http://coteditor.com
Created on 2014-12-02 by 1024jp
------------------------------------------------------------------------------
© 2014 1024jp
This program is free software; you can ... | Rewrite openDictionary.applescript | Rewrite openDictionary.applescript
Avoid calling Finder for Sandbox.
| AppleScript | apache-2.0 | eric-seekas/CotEditor,uchuugaka/CotEditor,onevcat/CotEditor,uchuugaka/CotEditor,eric-seekas/CotEditor,angi2/CotEditor,uchuugaka/CotEditor,uchuugaka/CotEditor,eric-seekas/CotEditor,angi2/CotEditor,uchuugaka/CotEditor,uchuugaka/CotEditor,yangchenghu/CotEditor,eric-seekas/CotEditor,yangchenghu/CotEditor,eric-seekas/CotEdi... |
74fe089b497feaab0568de327f7f2e6aad57c3fc | resources/config.applescript | resources/config.applescript | -- core configuration --
-- configurable options --
-- limit number of songs to improve efficiency
property resultLimit : 15
-- whether or not to retrieve/display album artwork for each result
property albumArtEnabled : true
-- workflow parameters --
-- workflow folders
property libraryFolder : (path to library fol... | -- core configuration --
-- configurable options --
-- limit number of songs to improve efficiency
property resultLimit : 15
-- whether or not to retrieve/display album artwork for each result
property albumArtEnabled : true
-- workflow parameters --
-- workflow folders
property libraryFolder : (path to library fol... | Fix regression where a2ec45c broke playalbumby filter | Fix regression where a2ec45c broke playalbumby filter
This is because a2ec45c removed the getArtistAlbums handler, which is
used by the playalbumby filter.
| AppleScript | mit | caleb531/play-song,caleb531/play-song |
621eb40dd3959c84ff377ed2769304addbc74f99 | support/iphone/itunes_sync.scpt | support/iphone/itunes_sync.scpt | FasdUAS 1.101.10
l
O
I
.hookUpdtnull cSrc
m hook alis L Macintosh HD @eH+
iTunes.app ... | FasdUAS 1.101.10
l L
O L
Y K
Z F
=
l
n
1
pKnd
4
cSrc
o 0 n
m
eSrckPod
Q B
I " '
.hookUpdtnull cSrc
o " # 0 n
... | Fix to support 'install to device' on iOS when no device present or sync disallowed [TISTUD-209] | Fix to support 'install to device' on iOS when no device present or sync disallowed [TISTUD-209]
| AppleScript | apache-2.0 | prop/titanium_mobile,KangaCoders/titanium_mobile,csg-coder/titanium_mobile,mano-mykingdom/titanium_mobile,linearhub/titanium_mobile,sriks/titanium_mobile,kopiro/titanium_mobile,jhaynie/titanium_mobile,benbahrenburg/titanium_mobile,peymanmortazavi/titanium_mobile,openbaoz/titanium_mobile,collinprice/titanium_mobile,hieu... |
4ddb10ee58c03166cd525e7788769ccaeb425171 | Release/dmg_growl.applescript | Release/dmg_growl.applescript | tell application "Finder"
tell disk "Growl"
open
tell container window
set current view to icon view
set toolbar visible to false
set statusbar visible to false
--set the bounds to {30, 50, 579, 600}
end tell
close
set opts to the icon view options of container window
tell opts
set icon size... | tell application "Finder"
tell disk "Growl"
open
tell container window
set current view to icon view
set toolbar visible to false
set statusbar visible to false
--set the bounds to {30, 50, 579, 600}
end tell
close
set opts to the icon view options of container window
tell opts
set icon size... | Save before committing! | Save before committing!
--HG--
extra : convert_revision : svn%3A99687598-2e92-11dd-8019-fe7b9d601d1b/trunk%404216
| AppleScript | bsd-3-clause | incbee/Growl,PersonifyInc/growl,incbee/Growl,PersonifyInc/growl,incbee/Growl,incbee/Growl,incbee/Growl,PersonifyInc/growl,PersonifyInc/growl,PersonifyInc/growl |
7ea28364a90a68f480bffca668cee43160abecd7 | scripts/pdfmatch_folder_action.applescript | scripts/pdfmatch_folder_action.applescript | # AppleScript folder action for the pdfmatch command
#
# Open with script editor, compile and save to
# ~/Library/Workflows/Applications/Folder\ Actions/
#
# Then open the "Folder Actions Setup" application and add the work folder
# where your pdfmatch.json config lives and attach this script.
#
on adding folder items ... | # AppleScript folder action for the pdfmatch command
#
# Open with script editor, compile and save to
# ~/Library/Workflows/Applications/Folder\ Actions/
#
# Then open the "Folder Actions Setup" application and add the work folder
# where your pdfmatch.json config lives and attach this script.
#
on adding folder items ... | Remove my $PATH setting from default apple script | Remove my $PATH setting from default apple script
| AppleScript | mit | mantoni/pdfmatch.js |
ddefa47e896de5eaf18037c85b9b66d893c9572d | thumbscrew.scpt | thumbscrew.scpt | -- thumbscrew.scpt
-- usage: thumbscript.scpt <path_to_root_dir> <path_to_keynotePresentation> <presentation_name>
--
-- Will create scaled thumbnails of length `thumbSize` in the directory
-- <path_to_root_dir>/.keynote/<presentation>
property thumbSize : 480
property thumbnailDir: "keynotes"
on getImages(f)
tell a... | -- thumbscrew.scpt
-- usage: thumbscript.scpt <path_to_root_dir> <path_to_keynotePresentation> <presentation_name>
--
-- Will create scaled thumbnails of length `thumbSize` in the directory
-- <path_to_root_dir>/.keynote/<presentation>
property thumbSize : 480
property thumbnailDir: "keynotes"
on getImages(f)
tell a... | remove the return value so it doesnt get into the stream | remove the return value so it doesnt get into the stream
| AppleScript | mit | azizshamim/thumbscrew,helaili/thumbscrew |
fa78dd8d3fe31723a568999345ab067a25671d37 | actions/clearcache.applescript | actions/clearcache.applescript | -- clears workflow cache, including album artwork and compiled scripts --
on loadConfig()
return (load script POSIX file (do shell script "./resources/compile-config.sh"))
end loadConfig
on run query
set config to loadConfig()
try
tell application "Finder"
delete folder (workflowCacheFolder of config)
end t... | -- clears workflow cache, including album artwork and compiled scripts --
on loadConfig()
return (load script POSIX file (do shell script "./resources/compile-config.sh"))
end loadConfig
on run query
set config to loadConfig()
try
tell application "Finder"
delete folder (workflowCacheFolder of config)
end t... | Delete Alfred Play Song playlist when clearing cache | Delete Alfred Play Song playlist when clearing cache
This is becoming a helpful step when troubleshooting any issues.
| AppleScript | mit | caleb531/play-song,caleb531/play-song |
88a5decbde7d5704dfe3d69b48308044d0b969f9 | macos/chrome/current-song.scpt | macos/chrome/current-song.scpt | set theFolder to POSIX path of ((the path to me as text) & "::")
set Controller to run script ("script s" & return & (read alias (POSIX file (theFolder & "/lib/controller.scpt")) as «class utf8») & return & "end script " & return & "return s")
set currentTrack to Controller's getCurrentSong()
set output to item 1 of ... | set theFolder to POSIX path of ((the path to me as text) & "::")
set Controller to run script ("script s" & return & (read alias (POSIX file (theFolder & "/lib/controller.scpt")) as «class utf8») & return & "end script " & return & "return s")
set currentTrack to Controller's getCurrentSong()
try
set output to quot... | Set current song to empty string if nothing is playing | Set current song to empty string if nothing is playing
| AppleScript | mit | atsuya/google-music-control |
2993e22789d3d012eb65dbadfbcda3694deb335b | script/start_install.scpt | script/start_install.scpt | #!/usr/bin/env osascript
-- Fist: Click Install Button
set timeoutSeconds to 8.0
my doWithTimeout("click UI Element \"Install\" of window 1 of application process \"Install Command Line Developer Toold\"", timeoutSeconds)
my doWithTimeout("click UI Element \"Agree\" of window 1 of application process \"Install Comman... | #!/usr/bin/env osascript
-- Fist: Click Install Button
set timeoutSeconds to 8.0
my doWithTimeout("click UI Element \"Install\" of window 1 of application process \"Install Command Line Developer Tools\"", timeoutSeconds)
my doWithTimeout("click UI Element \"Agree\" of window 1 of application process \"Install Comman... | Fix fatal mistake | Fix fatal mistake
| AppleScript | mit | k0kubun/rebuild,k0kubun/rebuild |
32dd1e9210fd345d3508f3e67430338ca04ac7f5 | QuickStats/QuickStats.applescript | QuickStats/QuickStats.applescript | property pTitle : "OmniFocus: Quick Stats"
property pVersion : "2.07.brett"
property pstrDBPath : "$HOME/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2"
property pstrMinOSX : "10.9"
property pTimeOut : 30
-- Original version: https://github.com/RobTrew/tree... | property pTitle : "OmniFocus: Quick Stats"
property pVersion : "2.07.brett"
property pstrDBPath : "$HOME/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2"
property pstrMinOSX : "10.9"
property pTimeOut : 30
-- Original version: https://github.com/RobTrew/tree... | adjust resolution where brief needed | adjust resolution where brief needed
| AppleScript | apache-2.0 | brettporter/omnifocus-tools |
9bbbbb5f469a7c65947908499bfa94cca4f9e03d | keynote.applescript | keynote.applescript | on newPresentation(themeName)
tell application "Keynote"
activate
-- FIXME: Make this selectable?
set targetWidth to 1024 -- 1440 <-- higher resolution
set targetHeight to 768 -- 1080 <-- higher resolution
set props to {document theme:theme (themeName as string), width:targetWidth, height:targetHeight}
s... | on newPresentation(themeName)
tell application "Keynote"
activate
-- FIXME: Make this selectable?
set targetWidth to 1024 -- 1440 <-- higher resolution
set targetHeight to 768 -- 1080 <-- higher resolution
set props to {document theme:theme (themeName as string), width:targetWidth, height:targetHeight}
s... | Return index when creating slide | Return index when creating slide
| AppleScript | mit | persquare/md2keynote |
2581b69b5b177d8aa8c44357b4a7e58aa5bb8f80 | autoload/tube/applescript/iterm.applescript | autoload/tube/applescript/iterm.applescript | on run argv
set command to (item 1 of argv)
tell application iTerm2
set _window to (current window)
if _window is equal to missing value then
create window with default profile
end if
tell current window
tell current session
write text command
end tel... | on run argv
set command to (item 1 of argv)
tell application "iTerm2"
set _window to (current window)
if _window is equal to missing value then
create window with default profile
end if
tell current window
tell current session
write text command
end t... | Update script again | Update script again
| AppleScript | mit | alisnic/tube.vim |
510d03a61c46bb54ea1025438d081157bf00faf1 | applescript/halt_vagrant.applescript | applescript/halt_vagrant.applescript | set close_vagrant to "z puppet; vagrant halt -f;"
-- close vagrant
tell application "iTerm"
activate
set myterm to (make new terminal)
tell myterm
launch session "Default"
set mysession to current session
end tell
tell mysession
write text close_vagrant
end tell
delay 5
end tell
-- quit iTerm
ignoring ... | set close_vagrant to "z puppet; vagrant halt -f;"
-- close vagrant
tell application "iTerm"
activate
set myterm to (make new terminal)
tell myterm
launch session "Default"
set mysession to current session
end tell
tell mysession
write text close_vagrant
end tell
end tell
| Remove closing iTerm2 | Remove closing iTerm2
| AppleScript | apache-2.0 | uberVU/toolbox |
dcabab4b698dc4009406443113aa06ef22422811 | scripts/pdfmatch_folder_action.applescript | scripts/pdfmatch_folder_action.applescript | # AppleScript folder action for the pdfmatch command
#
# Open with script editor, compile and save to
# ~/Library/Workflows/Applications/Folder\ Actions/
#
# Then open the "Folder Actions Setup" application and add the work folder
# where your pdfmatch.json config lives and attach this script.
#
on adding folder items ... | # AppleScript folder action for the pdfmatch command
#
# Open with script editor, compile and save to
# ~/Library/Workflows/Applications/Folder\ Actions/
#
# Then open the "Folder Actions Setup" application and add the work folder
# where your pdfmatch.json config lives and attach this script.
#
on adding folder items ... | Fix AppleScript extension matching | Fix AppleScript extension matching
| AppleScript | mit | mantoni/pdfmatch.js |
0d4f11430d41c734eca1db4342623c0b40aec89a | scripts/thinkCERCA-iterm.scpt | scripts/thinkCERCA-iterm.scpt | tell application "iTerm2"
activate
set cercaWindow to (current window)
tell cercaWindow
tell current session
split vertically with default profile
write text "tcd"
end tell
tell last session of current tab
write text "tcs"
end tell
set secondTab to (create tab with defau... | tell application "iTerm2"
activate
set cercaWindow to (current window)
tell cercaWindow
tell current session
split vertically with default profile
write text "tcd"
end tell
tell last session of current tab
write text "tcs"
end tell
set secondTab to (create tab with defau... | update cerca script | update cerca script
| AppleScript | mit | MelizzaP/dotfiles,MelizzaP/dotfiles,MelizzaP/dotfiles |
a79e8801a5c5d569d6946d8620ada322a6c73d8b | hammerspoon/connect_sony.applescript | hammerspoon/connect_sony.applescript | activate application "SystemUIServer"
tell application "System Events"
tell process "SystemUIServer"
set btMenu to (menu bar item 1 of menu bar 1 whose description contains "bluetooth")
tell btMenu
click
try
tell (menu item "Rosco's Headphones" of menu 1)
... | -- Source: https://www.reddit.com/r/MacOS/comments/i4czgu/big_sur_airpods_script/gck3gz3
-- Works on macOS 11 Big Sur
use framework "IOBluetooth"
use scripting additions
set DeviceName to "Rosco's Headphones"
on getFirstMatchingDevice(deviceName)
repeat with device in (current application's IOBluetoothDevice's p... | Update headphone connect script for Big Sur | Update headphone connect script for Big Sur
| AppleScript | mit | rkalis/dotfiles,rkalis/dotfiles |
3755272e03311275a8845f1848cbb8a96b62c915 | uninstall.applescript | uninstall.applescript | property stdout : ""
on run
set newline to ASCII character 10
set stdout to stdout & " shutdown TotalTerminalCrashWatcher ..." & newline
try
do shell script "killall -SIGINT TotalTerminalCrashWatcher" with administrator privileges
on error
set stdout to stdout & " TotalTerminalCrashWatcher.com not running... | property stdout : ""
on run
set newline to ASCII character 10
set stdout to stdout & " shutdown TotalTerminalCrashWatcher ..." & newline
try
do shell script "killall -SIGINT TotalTerminalCrashWatcher" with administrator privileges
on error
set stdout to stdout & " TotalTerminalCrashWatcher was not running... | improve uninstaller script | improve uninstaller script
| AppleScript | bsd-3-clause | binaryage/totalterminal-installer |
4aafec64d1586ce1ef7f7fae4b66b0025e3eeabf | support/iphone/itunes_sync.scpt | support/iphone/itunes_sync.scpt | FasdUAS 1.101.10
l L
O L
Y K
Z F
=
l
n
1
pKnd
4
cSrc
o 0 n
m
eSrckPod
Q B
I " '
.hookUpdtnull cSrc
o " # 0 n
... | FasdUAS 1.101.10
k
l K
O K
X J
Z E
l
=
n
1
pKnd
o 0 itunessource iTunesSource
m
eSrckPod
Q A
I ! & |