|
|
Fixing "Change All"
[robg adds: While I could make this script work for files on a one-at-a-time basis, I could not get the Change All solution to work -- regardless of how I specified the app, or set the file's extension, Change All had no effect. Only the selected file was modified to open with vi; a commenter on the queue review site had the same experience. If you know how to resolve that issue, please comment...] This is because the applet doesn't have a unique bundle identifier or bundle signature ("creator code") by default; when Script Editor saves an Application Bundle (or a PPC-only Application), it uses the First, make sure you're saving the script as an "Application Bundle" in Script Editor, not an "Application", because you can't fix this problem with an old-school "Application" (and because Applications are PPC-only; who wants to start Rosetta to launch vi on an Intel Mac?!). The easiest way to fix this is to change the bundle signature in your applet's You could also (or in addition) add a Simply add that with your favorite text editor (or Property List Editor) among the other CFBundle* keys in your Info.plist, save, and repeat the "move the app from the Applications folder" dance to get LaunchServices on board.
If it still doesn't work, be sure to launch the app once manually (by double-clicking) to clear the "you've never run this app before" roadblock, but that roadblock shouldn't be hit by apps built on your own Mac.
Fixing AppleScript apps
I wrote a Bash script a while back to fix this kind of issue in AppleScript apps - you can get my script here:
http://hayne.net/MacDev/Bash/fixAppleScriptApp
Fixing "Change All"
Thanks for explaining the reason for the problem! |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.16 seconds |
|