hbquikcomjamesl
Registered
This droplet (with a "display dialog" added for debugging purposes) works just fine on my new Mac Mini, but does nothing on my colleague's MacBook Pro, other than maybe make the dock quiver slightly (it doesn't even show the dialog!):
I'm on Mountain Lion (10.8.1); he's also on Mountain Lion (10.8.2); the droplet was originally generated by AppleScript Editor on (probably) a somewhat older OS release, and up until today, I hadn't done anything since the original version (that WAS working on his MacBook) other than tweak the Info.plist:
Help?
Code:
on open foo
repeat with bar in foo
set {tid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
set baz to text items of (bar as string)
set AppleScript's text item delimiters to "/"
set qux to baz as text
set AppleScript's text item delimiters to tid
display dialog "java -jar /Applications/Emulator/EmulatorLauncher.jar \"/Applications/Emulator/emulator.jar\" \"/Volumes/" & qux & "\""
do shell script "java -jar /Applications/Emulator/EmulatorLauncher.jar \"/Applications/Emulator/emulator.jar\" \"/Volumes/" & qux & "\""
end repeat
end open
I'm on Mountain Lion (10.8.1); he's also on Mountain Lion (10.8.2); the droplet was originally generated by AppleScript Editor on (probably) a somewhat older OS release, and up until today, I hadn't done anything since the original version (that WAS working on his MacBook) other than tweak the Info.plist:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>5250s</string>
<string>5250</string>
</array>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleTypeIconFile</key>
<string>IBM3487HA</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>droplet</string>
<key>CFBundleIconFile</key>
<string>IBM3487</string>
<key>CFBundleIdentifier</key>
<string>com.apple.ScriptEditor.id.EmuScript</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>EmuScript</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>dplt</string>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.6</string>
</dict>
<key>LSRequiresCarbon</key>
<true/>
<key>WindowState</key>
<dict>
<key>dividerCollapsed</key>
<false/>
<key>eventLogLevel</key>
<integer>-1</integer>
<key>name</key>
<string>ScriptWindowState</string>
<key>positionOfDivider</key>
<real>333</real>
<key>savedFrame</key>
<string>56 124 602 597 0 0 1680 1028 </string>
<key>selectedTabView</key>
<string>event log</string>
</dict>
</dict>
</plist>
Help?