Monday, December 9, 2019

#1 2019-07-22 04:03:04 pm

markconwaymunro
Member
Registered: 2017-11-28
Posts: 43
Website

Store Script command broken?

Trying to load a script, set a property and then save it.The store script command does this:

Applescript:

store script recEvent in pathToFile with replacing
--[AppDelegate applicationWillFinishLaunching:]: Can’t make «script» into type script. (error -1700)

Is this a bug? If so, is there a way to work around this?

Offline

 

#2 2019-07-22 05:49:09 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 6064

Re: Store Script command broken?

I don't think store script has ever worked in ASObjC-based apps. You could probably (and laboriously) work around it with OSAScript, but if you're just storing data you'd be better off moving away from script objects and using property lists.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com

Offline

 

#3 2019-07-23 06:43:19 am

markconwaymunro
Member
Registered: 2017-11-28
Posts: 43
Website

Re: Store Script command broken?

I was afraid of that. Thanks.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)