Ticket #23556: Spring.applescript

File Spring.applescript, 442 bytes (added by pepijndevos@…, 14 years ago)
Line 
1on open maps_and_mods
2        set type to button returned of (display dialog "What is this stuff?" buttons {"maps", "mods"})
3        repeat with this_item in maps_and_mods
4                tell application "Finder"
5                        try
6                                move this_item to folder type of folder ".spring" of home with replacing
7                        on error
8                                display alert "Please enable hidden folders on your Mac"
9                        end try
10                end tell
11        end repeat
12end open
13
14on run
15        do shell script "/opt/local/bin/spring"
16end run