New Message: Re: Edit with App failing

webmaster at userland.com webmaster at userland.com
Thu Jun 2 03:59:42 CDT 2005


A new message was posted:

Address: http://frontier.userland.com/discuss/msgReader$14099

By: David Bayly (dbayly at udena.ch)

This thrraad prompted me to go look at how Sean Elfstrom got around this same porblem for his DuckTape suite. The reason it happens is that BBedit ships as a package; which appears to Frontier as folder. Packages contain a small file called PkgInfo , which in turn contain the creator ID.

so in suites.odbEditor.editors.Text.edit, replace the line

local (ideditorapp = file.creator (user.odbEditors.TextEditor))

with

local (ideditorapp );
if system.environment.isCarbon and file.isFolder(user.odbEditors.TextEditor) {
 ideditorapp = string4(string.mid(file.readWholeFile(user.odbEditors.TextEditor + "Contents:PkgInfo"), 5, 4))}
else {
 ideditorapp = file.creator (user.odbEditors.TextEditor)}

This works for me on 10.3.9.

Its no a real solution which needs to fix the architecture of odbEditor I think.

This is a Manila site.. http://manila.userland.com/.




More information about the Manila-Server mailing list