Wednesday, November 22, 2017

#1 2011-08-04 01:16:57 pm

Mark Munro
Member
Registered: 2008-01-16
Posts: 175
Website

store script in file

I see in another thread that the store script command is broken in AS ObjC.  I'd really love to see a discussion of alternatives to this.

Applescript:

tell current application
   store script scriptObject in file pathToFile replacing yes
end

-- Error [-1700] Can’t make «script» into type script.

Offline

 

#2 2011-08-04 06:02:16 pm

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

Re: store script in file

You should be able to add OSAKit.framework and use its writeToURL:ofType:usingStorageOptions:error:.


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

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)