This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set progress total steps to 100 | |
repeat with i from 1 to 100 | |
set progress description to "Item " & i & " of " & 100 | |
set progress additional description to "foobar" | |
delay 1 | |
set progress completed steps to i | |
end repeat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Safari = Application ("Safari") | |
if (Safari.documents().length > 0) { | |
var source = Safari.documents()[0].source() | |
Application("BBEdit").Document({"contents":source, "source language":"HTML"}).make() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = Application.currentApplication() | |
app.includeStandardAdditions = true | |
var itunes = Application("iTunes") | |
var url = "http://localhost:9200/itunes/track/" | |
var lib = itunes.sources["Library"] | |
var tracks = lib.tracks() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run | |
tell application "Finder" | |
activate | |
try | |
set this_folder to (the target of the front window) as alias | |
on error | |
set this_folder to startup disk | |
end try | |
my open_terminal_window(this_folder) | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on open theFiles | |
repeat with aFile in theFiles | |
set appPath to POSIX path of aFile | |
set codeSignInformation to do shell script "codesign -vd '" & appPath & "' 2>&1" | |
display dialog codeSignInformation with title ("codesign -vd " & appPath) buttons {"Ok"} default button 1 | |
end repeat | |
end open | |
on run | |
open (choose file with multiple selections allowed) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
function log() | |
{ | |
echo `date +"[%d.%m.%Y %H:%M:%S] "`$1 | |
# Available Sounds: | |
# Basso, Blow, Bottle, Frog, Funk, Glass, Hero, | |
# Morse, Ping, Pop, Purr, Sosumi, Submarine, Tink | |
osascript << EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(** | |
Create new files or folders with a keystroke and by using the Tool | |
FastScripts http://www.red-sweater.com/fastscripts/ | |
you can overwrite the default Finder Shift-Command-N shortcut | |
to create a new folder for invoking our new script. | |
**) | |
tell application "Finder" | |
-- default name for a new file following | |
-- the Finders convention for naming folders | |
set newFileName to "untitled file" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
URL=$(osascript << EOF | |
tell application "Safari" | |
tell its first document | |
URL | |
end tell | |
end tell | |
EOF) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# prepared for Yosemite (10.10) | |
# osascript -l JavaScript -e "Application('Safari').documents()[0].text()" | |
CONTENT=$(osascript -ss << EOF | |
tell application "Safari" | |
tell its first document | |
get its text | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(*** | |
Use this AppleScript to launch WWDC 2014 videos in QuickTime Player 7, where | |
you can adjust the playback speed to your needs (⌘ + k). Have fun! | |
Christian Mittendorf, 15.06.2014 | |
cmittendorf<et>me.com | |
***) | |
set page_url to "https://developer.apple.com/videos/wwdc/2014/" | |
set videos to missing value |