Re: What's the REAL problem, please?


Brian Christmas
 

Thank you Andrew

However, as  cannot test your suggestion, I want to make myself absolutely clear on my understanding of what you’re saying.

Thorsten has changed his App name from just ‘GraphicConverter’, to now  ‘GraphicConverter 10’, and presumably in the future to  ‘GraphicConverter 11’,  ‘GraphicConverter 12', etc.. He rarely changes his dictionary options.

If (because I’m always recompiling), I use  ‘GraphicConverter 10’ now, and the present bundle identifier  is “com.lemkesoft.graphicconverter10”, will future bundle identifiers “com.lemkesoft.graphicconverter11”, “com.lemkesoft.graphicconverter12” work with my code?


Thank you for offering a ray of hope!!

Regards

Santa


On 2 Sep 2017, at 3:59 pm, Andrew Oliver <camelot@...> wrote:



Sent from my iPhone

On Sep 1, 2017, at 10:05 PM, Brian Christmas <ozsanta@...> wrote:

To get using terms from to work, I’m still restricted to knowing the exact name of the bundle identifier, which I REALLY absolutely need as a variable.

At compile time, yes but that is _largely_ irrelevant at rub time

You can put anything in your 'using terms from' statement - I'd go with 'Graphic Converter' - and when you hit compile the Script Editor will look for a matching application. If it can't find one it will prompt you for which application you're referring to, then it will load the appropriate dictionary, compile the app, and you're good to go. This app is *never* referenced again - at least until you recompile. 

The only time this could become an issue is if the dictionary varies between application versions and there is no backwards compatibility (which is the responsibility of the application developer, not you), such as if the commands in older versions are not supported in the newer version. 

Andrew
:)

Join applescript@apple-dev.groups.io to automatically receive all group messages.