Closed Bug 184449 Opened 22 years ago Closed 17 years ago

[10.3] Most AppleScript doesn't work and can't open AppleScript dictionary (Shockwave needs a resource file)

Categories

(Camino Graveyard :: OS Integration, defect, P3)

PowerPC
macOS

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.5

People

(Reporter: stf, Assigned: stuart.morgan+bugzilla)

References

()

Details

(Keywords: fixed1.8.0.13, fixed1.8.1.4)

Attachments

(4 files)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20021206 Chimera/0.6+
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20021206 Chimera/0.6+

The Apple Script Editor says ~"can't open the AS dictionary or is not
scriptable", however Navigator appears in the open list and can execute some AS.

Reproducible: Always

Steps to Reproduce:
I have this same problem with the 2002-12-20 build of Chimera in OS X 10.2.2.
Dragging the Chimera icon onto the script editor Smile brings up a dialog that
the applications Applescript dictionary can't be opened. I never had this
problem with previous versions of Chimera (0.5 and 0.6). I believe this means
that a file has been left out of the Navigator application package.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Mine.
Assignee: saari → sfraser
This is a regression from adding a "Localized.rsrc" file to allow Shockwave
Director to work. It seems that if any resource files are present, Script Editor
looks for Carbon-style script terminology resources. Suckage.
Status: NEW → ASSIGNED
This bug resurfaced in Camino 0.7.
Yeah, I'm gonna have to open the .rsrc dynamically after the app launches.
This appears to be true for Mozilla too - do you want a separate bug?
I filed bug 202340 to coner mozilla.
i'm curious what the status of this bug is. confirmed with a recent version of
camino.
Yes this problem still exists with today's nightly.
And the same work around still works: remove the Localized.rsrc file from the Camino:Contents:
Resources:English.lproj:  folder.
Priority: -- → P3
Target Milestone: --- → Camino0.9
I've discovered that the Director plugin doesn't need a 'vers' resource; it just
seems to need the application to have a "default" resource file (i.e. one opened
automatically by the OS). So it's hard to find a way to satisfy it, yet keep
Script Editor happy.
doesn't seem like we're going to find a workaround for 0.9, pushing off to after
1.0.
Target Milestone: Camino0.9 → Camino1.1
Still an issue (note that Camino now uses a Camino.rsrc file, rather that
Localized.rsrc which the above comments describe).
Summary: Can't open AppleScript dictionary → Can't open AppleScript dictionary (Shockwave needs a resource file)
We could use an 'aete' resource in the Camino.rsrc file, but this is kind of
ugly. I have tried it, though, and it works. Or at least, ScriptEditor will read
the scripting dictionary from it.
Yeah, we could, and I think we may even be able to build one using sdp from the
same xml file. But Camino is a Cocoa app and should use the New Way. I just want
to know why Directory needs a stupid resource file.
Summary: Can't open AppleScript dictionary (Shockwave needs a resource file) → [10.3] Can't open AppleScript dictionary (Shockwave needs a resource file)
Is there anyone at Macromedia who can answer comment 14?
Component: General → OS Integration
QA Contact: winnie → os.integration
Target Milestone: Camino1.1 → Camino1.2
This is really much worse than the current summary (and our sucky FAQ entry) implies.  Most of our AppleScript is essentially inoperative on 10.3 (and likely 10.2) with the .rsrc present.

I downloaded the latest Shockwave Director plugin and, after much tribulation, determined that it still suffers from this need for a stupid resource file.  

Is there anyone at Adobe we can bug about this?
Severity: normal → major
Summary: [10.3] Can't open AppleScript dictionary (Shockwave needs a resource file) → [10.3] Most AppleScript doesn't work and can't open AppleScript dictionary (Shockwave needs a resource file)
Attached patch workaroundSplinter Review
I looked around a bit, and stumbled across OmniWeb's description of their workaround to this problem, which is to open a random resource file and put a reference to it in the magic location to make Shockwave happy. While trying to figure out how to implement that I came across WebKit's version, which seems to be based on the same thing. Since it's a previously described technique and a whopping 4 lines of code, I assume there aren't any license/copyright issues.

This will need a project change to remove the .r file and the script phase that turns it into the .rsrc in the bundle.
Assignee: sfraser_bugs → stuart.morgan
Attachment #263083 - Flags: review?
Attachment #263083 - Flags: review? → review+
Smokey, could you put together a project patch? If not, I can dig out my old laptop and do it.
Attachment #263083 - Flags: superreview?(mikepinkerton)
You are my hero!  Please remember to update the Release Checklist file, too.
Comment on attachment 263083 [details] [diff] [review]
workaround

sr=pink
Attachment #263083 - Flags: superreview?(mikepinkerton) → superreview+
Since 10.2 also suffers from this bug, is this a reasonable item to include in 1.0.5 before we EOL 10.2 support?
Checked in on trunk and MOZILLA_1_8_BRANCH, along with removing the
corresponding line from the checklist file. We should make sure the release notes reflect this.

Flagging 1.0.5? so we don't forget to at least consider it; it seems like a
good idea to me as well.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: camino1.0.5?
Keywords: fixed1.8.1.4
Resolution: --- → FIXED
Target Milestone: Camino1.6 → Camino1.5
Approving for 1.0.5; whoever checks this in, please also update the the Release Checklist file on the 1.8.0, just in case there's a security firedrill or whatever post-1.0.5.
Flags: camino1.0.5? → camino1.0.5+
Whiteboard: [needs checkin 1.8.0]
Checked in on MOZILLA_1_8_0 branch with relnote fix and slight tweak to the patch to make it apply (the method I was calling from doesn't exist on 1_8_0, but I put in the same logical place in the flow).
Whiteboard: [needs checkin 1.8.0]
Attached file 1_8_0 branch patch
As checked in.
Keywords: fixed1.8.0.13
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: