Hi everyone
I use xojo to send parameter and activate applescript ( applying change’s on pdf )
Inside the applescript the Display Notification
won’t work ( do nothing )
i’m force to use display dialog
with delay to remove automatically the window
IF i run the Applescript Alone ( not trigger by xojo ) the Display Notification
Work fine !!
is there something that xojo intefering between applescript and be able to display Notification
Thanks
Could you post your Applescript code ? It is dragged into the project, right ?
easy… just to test
display notification "Test Notif"
display dialog "Test dialog"
trigger by push buttion ( only “Test dialog” window ) appear
[quote=254253:@Denis Despres]easy… just to test
display notification "Test Notif"
display dialog "Test dialog"
trigger by push buttion ( only “Test dialog” window ) appear[/quote]
I am not asking for a test code. What is the code you actually use ?
I have been using this for a quite a while and it works every time :
on run {notif, titler}
display notification notif with title titler
end run
I just created a toto.scpt in the script editor with the code
display notification "Test Notif"
Dragged toto.scpt in a new project, and in a button Action event handler entered :
toto
It displays just fine.
I then pasted both your lines, and I get both a notification and the dialog.
What version of Xojo are you using ?
I know that others have written about the importance of having the app pause long enough to display the notification. Perhaps if the app logs it and instantly quits then it doesnt display? Does your app keep running after the attempt to display the notification?
All my excuse
won’t work RS 2012 at home ( weekend )
But Work fine on xojo 2013 4.1 At job
Yes James i’v let my script breath to have time to send notif
Thanks