Sublime Forum

Sublime Package PreBuild error

#1

I’m unable to get this extension to work in Sublime Text 2. I was offered some support with regards to changes in an attempt to get it to work in ST2 but that failed with the following error ?

Changes {Script A}

{  
  "osx": {  
     "cmd": ["osascript", "$packages/Illustrator/Illustrator.scpt", "$file"]  
  },  
  
  "windows": {  
    "cmd": ["wscript", "$packages/Illustrator/Illustrator.vbs", "$file"]  
  }  
}  

{Script B - VB}

myScript = Wscript.Arguments.Item(0)  
Set myIllustrator = CreateObject("Illustrator.Application")  
Set myFileSystemObject = CreateObject("Scripting.FileSystemObject")  
Set myFile = myFileSystemObject.OpenTextFile(myScript, 1)  
script = myFile.ReadAll  
myIllustrator.DoJavaScript script  

Error when running the above Built within ST2;

Illustrator.sublime-build:2:2 ?

0 Likes