I’ve a workflow which is put in as a Service. It’s used to name code in my AppleScript applet. The Service has one motion: a “Run AppleScript” motion. I replace the Service very often with enhancements.
I would like a technique to know that the put in model of my Service is previous. A method may be to present it a “model”.
I’ve tried some ways, none of which labored. Particularly, often there’s a CFShortVersionString key in an app’s data.plist file. I can add that to my Service’s data.plist file. However, after I open my Service in Automator.app, make some adjustments after which save, all my customized entries within the data.plist file are deleted.
Is there an editor for Automator workflows that doesn’t take away customized keys within the data.plist file ?
Thanks.
UDATE: Including a variable to the workflow is a good suggestion. However, I am unable to it working for me. Yesterday, I added the variable known as “Model” and gave it a price “1.21”. At the moment, the variable continues to be there however is empty. Most likely as a result of I nonetheless don’t perceive the way it all works and I made a large number of it.
In the long run, a separate file within the service’s bundle containing simply the model string is straightforward for me as my AppleScript applet can learn it with out having to parse a sophisticated XML file (both as plain textual content or utilizing System Occasions).
Additionally, I nonetheless do not know the way builders create workflows which DO include model and different keys inside the information.plist file. Automator removes these keys and so builders have to be utilizing one other device – Xcode ?
Have additionally discovered some providers that include a “model.plist” file. I’ve Googled for hours however, can discover no documentation on the “model.plist” file content material – which appears to duplicate some keys inside data.plist. The “model.plist” file doesn’t appear to be utilized by Finder. In an instance service supplied by Apple, if I delete the CFBundleShortVersionString from the information.plist file, however retain the model.plist file, Finder’s Get Information reveals no model.
UPDATE 2: Apparently model.plist is utilized by Installer. Extra element right here: http://mirror.informatimago.com/subsequent/developer.apple.com/documentation/DeveloperTools/Conceptual/SoftwareDistribution/Ideas/sd_pkg_version_info.html
Cannot discover that element wherever on developer.apple.com so, it may be out-of-date/flawed.