I believe it’s a me issue, but I’m creating some IDE Scripts so when I build, I get two Mac files, one MAS friendly, one for the main website. I’ve kind of discovered the code this from the new Xdev mag article. For now, I’ve created a simple script just to create the MAS file, however, the Constant works fine so I get the build I want, however the Mac filename remains the same as what I’ve set in the IDE. Any thoughts?
dim appName as string = PropertyValue("App.MacOSXAppName")
dim path As String
ConstantValue("frmMain.kAppleMAS") = "True"
PropertyValue("App.MacOSXAppName") = appName + " MAS"
path = buildApp(7, true)
ConstantValue("frmMain.kAppleMAS") = "False"
PropertyValue("App.MacOSXAppName") = appName
I literally took your script - copied & pasted
Set up a new project with one window named frmMain and added a constant to it - kAppleMAS as a boolean and initially set it false
I commented out the last two lines JUST to see if the script worked (so it was as follows)
dim appName as string = PropertyValue("App.MacOSXAppName")
dim path As String
ConstantValue("frmMain.kAppleMAS") = "True"
PropertyValue("App.MacOSXAppName") = appName + " MAS"
path = buildApp(7, true)
' ConstantValue("frmMain.kAppleMAS") = "False"
' PropertyValue("App.MacOSXAppName") = appName
Ran the script
It set the name the way I expected (originally it was called “bananas” and after running it was “bananas MAS”
the constant was still true
so then I changed those items back and uncommented the last two lines & ran
And it still worked
Not sure what else to say
I believe I’ve cracked it, basically I had renamed the Application class to my apps name. Renamed it back to App and it worked. What threw me was this in the docs.