Ticket #23556: Spring.2.applescript

File Spring.2.applescript, 443 bytes (added by jmroot (Joshua Root), 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 "__PREFIX__/bin/spring"
16end run