<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: Mail glue and making glue on
x</title></head><body>
<div>There is a trick (which I used today for the Image Capture
scripting addition), and it seems to work.</div>
<div><br></div>
<div>There is a brief thread in the discussion group. Do a search on
Google for "commercial aete os x" and it should be the first
hit. This is the salient message, which I will recap below.</div>
<div><br></div>
<div>http://frontier.userland.com/discuss/msgReader$10545</div>
<div><br></div>
<div>Here's the basic approach:</div>
<div><br></div>
<div>1) Find out the application signature for your app. The Mail app
is 'emal', but what if I didn't know that? The signature is in the
pkgInfo for the app. Using a text editor that can see "hidden"
files (I used BBEdit), or using a command line editor (like pico),
navigate to the app and "open" it (it's really a folder).
Inside, open the Contents folder, then the pkgInfo file. It will say,
"APPLemal" for Mail: the application signature is
"emal".</div>
<div><br></div>
<div>2) In Frontier, create this script:</div>
<div><br></div>
<div><font face="Times New Roman" size="+2" color="#000000">result =
AppleEvent('[app signature]', 'ascr', 'gdte')</font></div>
<div><font face="Times New Roman" size="+2"
color="#000000">file.new("[path to writable
folder]:appAETE.rsrc")</font></div>
<div><font face="Times New Roman" size="+2"
color="#000000">rez.putResource ("[path to writable
folder]:appAETE.rsrc", 'aete', 0, @result)</font></div>
<div><br></div>
<div>where "app signature" is the signature you got from the
pkgInfo file, and "path to writable folder" is a path to a
folder you have privileges for. If you try to write to the top-level
directory, you'll get a permissions error (probably).</div>
<div><br></div>
<div>3) Fix the commercial suite. Jump to
"commercial.enterAppName". Find the statement, "If
promptForFile". Below that, where it says, "if not
file.getFileDialog()", the file type is set to 'APPL'. This won't
work, since you are trying to import from a resource file, not an app.
So change 'APPL' to 0 to have Frontier show you all files, not just
apps. If you try to import the aete's manually using "Import
'aete info..." from the Glue menu, you'll have to perform a
similar fix.</div>
<div><br></div>
<div>4) From the Glue menu, choose, "Enter your App's
name...". When asked, "Where is [app name]?", navigate
to the rsrc file you created in step 2. Answer yes to everything
else.</div>
<div><br></div>
<div>5) Fix the glue table. Open up the glue table you just made
("Open Table & Menu" from the Glue menu). Open the
appInfo table. The path will be wrong, since it is the path to the
resource file, not the app. You can either correct the filespec, or
just delete it. When you call any script in the table, you will be
prompted to find the application. Navigate to the correct app this
time and Frontier will fill in the correct path. Th app ids are wrong
as well. You probably have "????" instead of a creator code.
I don't know if it matters, but change this to the application
signature you determined in step 1. The id appears in two places: in
the appInfo table and in the glue table proper.</div>
<div><br></div>
<div>Good luck. Let us know what happens.</div>
<div><br></div>
<div><br></div>
<div><br></div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite>Does any one have a glue table for
mail.app on MacOS X or is there a version of Commercial Developers
Suite that has been updated?</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>Sam D</blockquote>
<blockquote type="cite" cite><tt><font
size="+1">=======</font></tt></blockquote>
<blockquote type="cite" cite><tt><font size="+1">See a new experiment:
a dad and his two girls</font></tt></blockquote>
<blockquote type="cite" cite><tt><font
size="+1">http://scidzone.editthispage.com</font></tt></blockquote>
<blockquote type="cite" cite><tt><font size="+1">join, see and
share......</font></tt></blockquote>
<blockquote type="cite" cite><tt><font
size="+1">=======</font></tt></blockquote>
<div><br></div>
<div><br></div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div>Brian Ablaza<br>
Chief Technology Officer<br>
Star Interactive<br>
<br>
856.488.2015</div>
</body>
</html>