|
From: Hylton Boothroyd on 29 Jun 2008 16:10 I've been trying today, unsuccessfully, to implement a variant of the basic scripting ideas in Chapter 10 of the manual. To my surprise, with OS 10.4.11 and MacSOUP 2.8.2 on an Intel MacMini, no MacSOUP dictionary seems to be available to AppleScript Editor 2.1.1(81) with AppleScript 1.10.7 . I would be grateful for any pointers on this. I feel that I can half-remember Stefan warning us about later versions of 10.4.* -- but if he did it's not something I kept in my selective usenet archive. -- Hylton
From: Stefan Haller on 30 Jun 2008 07:02 Hylton Boothroyd <hylton.boothroyd(a)null.c0m.invalid> wrote: > To my surprise, with OS 10.4.11 and MacSOUP 2.8.2 on an Intel MacMini, > no MacSOUP dictionary seems to be available to AppleScript Editor > 2.1.1(81) with AppleScript 1.10.7 . I'm afraid this must be a bug in MacSOUP; the same happens on 10.5.3. I didn't get around to looking into it yet, sorry. Cheers, Stefan -- Stefan Haller Berlin, Germany http://home.snafu.de/stk/
From: David Empson on 30 Jun 2008 08:35 Stefan Haller <stk(a)snafu.de> wrote: > Hylton Boothroyd <hylton.boothroyd(a)null.c0m.invalid> wrote: > > > To my surprise, with OS 10.4.11 and MacSOUP 2.8.2 on an Intel MacMini, > > no MacSOUP dictionary seems to be available to AppleScript Editor > > 2.1.1(81) with AppleScript 1.10.7 . > > I'm afraid this must be a bug in MacSOUP; the same happens on 10.5.3. I > didn't get around to looking into it yet, sorry. I'm not so sure. It could be a Script Editor bug, specifically to do with how MacSOUP has structured the files inside the package, or a specific way of structuring an application which Apple no longer supports. Can older versions of Script Editor correctly read the scripting dictionary in the current MacSOUP? For reference, I can successfully invoke MacSOUP's scripting features in 10.5.3, e.g. osascript -e 'tell app "MacSOUP" to connect with fetching news' I see there is a "Localized.rsrc" file inside MacSOUP.app/Contents/Resources/English.lproj, and that file contains an 'aete' resource (Apple Event Terminology). That resource seems to be valid (at least, Resorceror reads it - it has "connect", "purge" and "geturl" handlers). This structure differs from other applications I've glanced at, and it is possible that recent versions of Script Editor (or AppleScript in general) can't handle this any more (or have a bug which prevents this particular structure from working). Some other applications of similar vintage have their 'aete' resource in the resource fork of the application itself (which would be MacSOUP.app/Contents/MacOS/MacSOUP), and they seem to work fine in Script Editor. The problem might also be related to the Info.plist file for the package - perhaps it needs to specify something to tell the system that MacSOUP is scriptable? I note also that Script Editor in 10.5.3 thinks my copy of FileMaker Pro 6 is not scriptable (which it definitely is, and it has an 'aete' resource attached to the application file inside the package). It might be missing something in its Info.plist file. This is a different symptom from MacSOUP: for FileMaker Pro 6, I get an alert in script editor which says the application isn't scriptable, whereas MacSOUP produces either nothing at all, or an empty window. Script Editor is happy with FileMaker Pro 7 but I haven't checked what is different between it and FMP6. I haven't found anything else yet where Script Editor misbehaves in the same manner as for MacSOUP. -- David Empson dempson(a)actrix.gen.nz
From: Hylton Boothroyd on 30 Jun 2008 10:02 I wrote: > To my surprise, with OS 10.4.11 and MacSOUP 2.8.2 on an Intel MacMini, > no MacSOUP dictionary seems to be available to AppleScript Editor > 2.1.1(81) with AppleScript 1.10.7 . That's not quite accurate. There _is_ a dictionary, but there's nothing in it! -- Hylton
From: Hylton Boothroyd on 30 Jun 2008 10:30 I wrote: > I wrote: > > > To my surprise, with OS 10.4.11 and MacSOUP 2.8.2 on an Intel MacMini, > > no MacSOUP dictionary seems to be available to AppleScript Editor > > 2.1.1(81) with AppleScript 1.10.7 . > > That's not quite accurate. There _is_ a dictionary, but there's nothing > in it! And having taken across a copy of MacSOUP to a PowerBook (PPC) with OS 10.3.9, the report is different: MacSOUP is reported to be unscriptable by AppleScript Editor 2.0 (43.1) with AppleScript 1.9.3. So I think David is right to suggest that there is quite a mystery to this. -- Hylton
|
Pages: 1 Prev: flash video temp file Next: iWeb (was Re: FF3 for Mac a disaster!) |