Le 15 oct. 2014 à 9:55, Jean-Luc Arnaud a écrit:
> Is there a way to force the app to quit, or to close the file before
> killing the process?
Hello Jean-Luc,
I don't know much about 10.9, but on my 10.6 Mac, Adobe Reader is scriptable.
This code would close the front window:
dim ae As AppleEvent
dim o As AppleEventObjectSpecifier
ae=new AppleEvent("core","clos","com.adobe.Reader")
o=GetIndexedObjectDescriptor("cwin",nil,1)
ae.MacTypeParam("savo")="no "
ae.ObjectSpecifierParam("----")=o
if ae.Send then
System.DebugLog "Front window should have closed."
end if
(it compiles, but I haven't tested whether it actually works, since… well, at
the moment I don't find a pdf file to open… but it should work)
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info