Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Help, please, with a beforeQuit script

$
0
0

Hi Robert

 

You can use vb and applescript

To display a simple alert that won't close on the application quite is quite simple.

Note the use of the 3 quote marks.

A progress bar is more complicated.

 

 

myVBScript = '''MsgBox "Hello there",64,"My message Box"''';
myAppleScript = """tell application "System Events" to display notification "Hi there!" with title "Greetings" """// if the above notifcation doesn't work i.e. old o.s. then you can do the below alert// myAppleScript = """tell application "System Events" to display alert "Hi there!" """; if ($.os.match(/^W/)) app.doScript(myVBScript,ScriptLanguage.VISUAL_BASIC);else app.doScript(myAppleScript,ScriptLanguage.APPLESCRIPT_LANGUAGE);// see// http://www.javascriptkit.com/javatutors/vbalert.shtml// http://stackoverflow.com/questions/5588064/how-do-i-make-a-mac-terminal-pop-up-alert-applescript// https://developer.apple.com/library/mac/documentation/applescript/conceptual/applescriptlangguide/reference/aslr_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW224

 

Trevor


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>