As the subject asks: Can a runtime solution run a script in a FMPS hosted file?
Ronnie may be running in circles,
No, the runtime engine cannot share or see shared files. Its a stand alone application.
The ch0c0halic is most correct!
The FMPA11_Development guide states: "A runtime solution can only perform an external script if the external file is bound to the runtime solution."
A runtime can only act on the files bound to it.
Not directly, no - as others have said.
To do this, you'd have to use a middleware or third-party technology (which - depending on the method - may require that the hosted file be open in a copy of Filemaker Pro on the same computer as the runtime).
One avenue you might like to look into would be the Troi Activator plug-in. However, it would need to be installed in both the runtime and a FileMaker instance at a known address, to enable the runtime to call a script remotely.
Other options, depending on the platform (and other considerations) may be OS-level scripting or macro/automation utilities.
R J Cologon, Ph.D.
FileMaker Certified Developer
Author, FileMaker Pro 10 Bible
NightWing Enterprises, Melbourne, Australia
Can you you use web viewer to view an IWP layout and press a button?
Or simply make the script the startup script of the IWP file and then close it emmediatly after opening.
Alternativley you could submit an XML instruction via a web viewer?
I read an answer a while ago on the older FileMaker forums that suggested this path, so I didn't look it up. User error on me.
My real goal is to create then email a pdf on a schedule. FMPS can't use the Save Records as PDF script step. Grumble.
This type of creative work-around reminds me of the early days, pre-FMP3, before the If/Then script step. Thank goodness for 'Go to next record, exit after last'.
Retrieving data ...