Note that there are some explanatory texts on larger screens.

plurals
  1. UShas
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COThe `ruby` bit isn't necessary; just call `osascript` directly and put the `delay 30` command at the top of your `dostuff.scpt` file. However, you do need to put another `&` at the end of your shell script in order to detach the `osascript` process, like this: `do shell script "osascript ~/dostuff.scpt &> /dev/null &"`
      singulars
    2. COBest practice is always to set TIDs to an appropriate value immediately before using text item delimiters or list-to-text coercions (both implicit and explicit). That's the only way to be sure your code isn't susceptible to errors (i.e. defensive programming). Polite practice is to store the existing TIDs in a temporary variable then restore them once you're done (i.e. the global 'text item delimiters' property in the state you found it). It's wise to do this in handlers, in case the line of code that calls the handler does something involving TIDs immediately afterwards.
      singulars
    3. COY'know, I don't actually know. It's entirely possible that the SB developers forgot to add a way to do that, but it's hard to say for sure without further research, given that the documentation is lousy and the API addled and opaque. (SB is the reason I wrote objc-appscript, btw.) Have you tried passing a reference to the container itself, on the off-chance that this works? (Some apps expect a container reference anyway.) If that fails, I'd suggest posting to applescript-implementors and try to get the attention of an AS engineer. Or use appscript, which basically Just Works.
      singulars
 

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