At jpackage 19, I filed a bug on this but don’t have a number yet.

I did do a little looking at the DMGSetup.scpt AppleScript on my own. 

I was thinking this…

        -- Create alias for install location
        make new alias file at POSIX file "DEPLOY_VOLUME_PATH" to POSIX file 
"DEPLOY_INSTALL_LOCATION" with properties {name:"DEPLOY_INSTALL_LOCATION”}

Could be replaced with simply…

        -- Create alias for install location
        make new alias file at POSIX file DEPLOY_VOLUME_URL to POSIX file 
DEPLOY_INSTALL_LOCATION with properties {name:”Applications”}

Assuming the folder is always “Applications”. Then it occurred to me you might 
be doing some localization for this folder name. 

I then found this which could possibly be used…

        -- Create alias for install location
        set DEPLOY_APPLICATION_NAME to displayed name of (path to applications 
folder) -- i18n name
        make new alias file at POSIX file DEPLOY_VOLUME_URL to POSIX file 
DEPLOY_INSTALL_LOCATION with properties {name:DEPLOY_APPLICATION_NAME}

Which appeared to provide the localization?

Determining the folder name in the AppleScript could eliminate some of the 
other parameterization in use. If it isn’t possible you might have to add a new 
parameter for the folder name without the leading / or parse it out in the 
script somehow.

Possibly localization, if the AppleScript does support it, could be an option 
the developer may or may not want. 




Reply via email to