OmniOutliner and controlling user interaction in AppleScript
Thomas Ingham
tingham at coalmarch.com
Tue May 11 14:23:34 PDT 2004
Shouldn't this sort of thing be wrapped in a try block? I mean,
historically?
tell app "Me"
try
open aliasFile
on error msg num
--handle the error
end try
end tell
-thomas
On May 11, 2004, at 5:06 PM, Michael Terry wrote:
>
> 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
>
> _______________________________________________
> OmniOutliner-Users mailing list
> OmniOutliner-Users at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/omnioutliner-users
>
More information about the OmniOutliner-Users
mailing list