Re: Script as internet helper protocol in tiger
Re: Script as internet helper protocol in tiger
- Subject: Re: Script as internet helper protocol in tiger
- From: jj <email@hidden>
- Date: Fri, 06 May 2005 21:50:53 +0200
> Has anyone successfully defined an AS applet as an internet helper
> protocol in Tiger?
This is what I use in a bundle (Info.plist) file (see capitals for sensitive
information):
#################################################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM
"file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>applet</string>
<key>CFBundleIconFile</key>
<string>applet</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>CODE</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>URL DESCRIPTION</string>
<key>CFBundleURLSchemes</key>
<array>
<string>SCHEMA</string>
</array>
</dict>
</array>
<key>LSPrefersCarbon</key>
<true/>
</dict>
</plist>
#################################################
I also change here the "PkgInfo" file (stores file-type and file-creator;
the last one should match the CFBundleSignature).
After a restart (or after you quit Safari/other-conflicting-apps, compress
the app, then delete the original, then uncompress the compressed app), it
should work fine.
And these are the steps I follow for a regular carbon app:
1. "plst" resource (modify/add according to the previous shown plist)
2. Change now (for safety's sake) BNDL's signature (that is, use here the
same creator CODE where you should see "aplt"). Change also the creator-code
of the app itself (via AS, Resorcerer, etc.).
3. Restart or blah.
Note that everytime you edit and save the script, you'll be destroying all
this info. I think all script editors will overwrite these plist resources
and creator-type info at save-time.
jj
--
http://www.macscripter.net/
http://www.osaxen.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden