OmniOutliner and controlling user interaction in AppleScript

Michael Terry formido at mac.com
Tue May 11 14:06:40 PDT 2004


On May 10, 2004, at 8:33 PM, Michael Terry wrote:

>> Any of the scripters out know much about / have opinions about 
>> controlling the user interaction level (which indicates whether or 
>> not the application should attempt any interaction with the user)? As 
>> best as I can tell, AppleScript still doesn't have standard support 
>> for changing the user interaction level, and I'm trying to confirm 
>> this, and see what support scripters think is important.
>
> Yes, I think you're right. The topic doesn't come up much. In general, 
> applications just eliminate user interaction when executing script 
> commands. For example, when you empty the trash via Finder->Empty 
> Trash…, a dialog pops up asking you if you really want to do that. If 
> you empty the trash via script, no dialog is presented.
>

I don't script Photoshop, but I noticed this line in someone else's 
script yesterday:

open thisFile showing dialogs never

Of course, that doesn't suggest anything about telling how the 'open' 
event was initiated, and I don't know if PS distinguishes error cases 
when opening documents. That's just an example of a possible interface 
for scripters to suppress user interaction.


Mike




More information about the OmniOutliner-Users mailing list