forked from wycats/osx-window-sizing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
28 lines (26 loc) · 880 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
desc "Compile scripts to .scpt files"
task :compile do
Dir["*.applescript"].each do |script|
script_name = script.gsub(/\.applescript/, '')
puts "Compiling #{script_name}.applescript..."
system "osacompile -o #{script_name}.scpt #{script_name}.applescript"
end
puts "Done"
puts
end
desc "Install scripts to your scripts folder"
task :install => :compile do
puts "Copying scripts to your scripts folder"
system "mkdir -p ~/Library/Scripts"
system "cp *.scpt ~/Library/Scripts"
puts "Done"
puts
end
desc "Download and mount FastScripts"
task :install_fastscripts do
system "curl http://www.red-sweater.com/fastscripts/FastScriptsLite2.3.6.dmg > FastScripts.dmg"
system "hdiutil attach FastScripts.dmg"
puts "FastScripts Lite is now mounted in your system. Opening the folder..."
sleep 1
system "open \"/Volumes/FastScripts Lite 2.3.6\""
end