Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>OS version 10.6.8</p> <p>Update: <strong>Confirmation of validity</strong><br/> After initially writing the below I tried to revert the code at hand but could not reproduce the error and hid the post by "deleting" it.<br/> Just now the error happened when loading one non-existant and one existent file-path in an options-parsing script loaded with a <code>load script</code> call, initially handled by run handler, called by the CLI osascript(1) program. This time it is revertible and I feel confident to un-"delete" it.</p> <p>In short, my solution is to change <code>anyone_else's POSIX file path_posix</code> to <code>AppleScript's POSIX file path_posix</code></p> <p><strong>Some relation</strong><br/> After writing the below I now realize that i first only saw "iTunes" and missed the relevant first line with <code>tell app "system events"</code> and the use of it's <code>property list file</code> which perhaps/actually/somehow could be related to my issue with <code>info for</code> a <code>POSIX file</code>.<br/> A note related to OP/question: file or alias <code>as string</code> gives a colon-separated "HFS"-path. System Events handles both.</p> <p><strong>My issue</strong><br/> In a script-loading script i got <code>error "Internal table overflow." number -2707</code> from the block below.<br/> It was issued when i called the block's handler using ~IPC~ (<code>app app_name's handler_name()</code>) (when i investigated it more thoroughly but, i had come across it before - without IPC).</p> <pre><code>try set file_modified_date to (info for my POSIX file file_path_posix)'s modification date true on error error_message number error_number from error_source partial result error_result to error_class if {error_number} is not in {-43, -37} then error error_message number error_number from error_source partial result error_result to error_class false end try </code></pre> <p>A (<em>the</em>(?)) parent (used for <code>my</code>) of this script, worth mentioning, is <code>current application</code> (with some levels in between) (compiled and bundled in "AppleScript Editor" to be run as a stand-alone .app)</p> <p><strong>My solution</strong><br/> Changing</p> <pre><code>set file_modified_date to (info for my POSIX file file_path_posix)'s modification date </code></pre> <p>to</p> <pre><code>set file_modified_date to (info for AppleScript's POSIX file file_path_posix)'s modification date </code></pre> <p>solved the issue - for now.</p> <p><strong>Thoughts</strong><br/> I'm guessing different ~modules~ has different "tables" (don't now much C) for handling a thing like <code>POSIX file</code> and <code>info for</code> (open "Scripting Addition" / extension (OSAX) "Standard Additions", as it (both) still is, is it not?). </p> <p>Hope this helps, and that my level of detail (and parentheses) didn't loose or confuse you :) Good night.</p> <p><strong>Diggin' 'round the cradles</strong><br/> Around the AS memory grave: (Spam prevention made me downgrade all but 2 hyperlinks - give me some rep. and i'll fix it :p)<br/> • The eminent ~has [on this error code] (http://lists.apple.com/archives/applescript-users/2005/Jul/msg00166.html) with a related but perhaps other source (and mentioning his library loader) via list.apple.com.<br/> • Some [good questioning] (http://lists.apple.com/archives/applescript-implementors/2005/Jun/msg00104.html), some to which the below might be a slightly yawning answer:<br/> • cs.cmu.edu provides (120625) a <a href="http://www.cs.cmu.edu/afs/cs/project/cmcl/link.nectar/member/airshed/psc/AFSCS/archive/mac.bin/development/languages/MPW%20Oberon%20%3ac4/OInterfaces/AppleScript.mod" rel="nofollow">pascal source from 1992</a> that defines the same limits as my local /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/Headers/AppleScript.h<br> • And finally a more distantly related [issue with large scripts] (http://macscripter.net/viewtopic.php?id=11760) from <a href="http://macscripter.net" rel="nofollow">macscripter.net</a> - a good forum of knowledge and collection of resources around applescript.<br/></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload