Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Handling error after running applescript #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
linjackson78 opened this issue Aug 12, 2016 · 1 comment
Closed

Handling error after running applescript #45

linjackson78 opened this issue Aug 12, 2016 · 1 comment

Comments

@linjackson78
Copy link

linjackson78 commented Aug 12, 2016

From time to time, create-dmg exits successfully, but I get a dmg of problems, such as wrong positioning of app icon, no background set, etc.

I found the one-line clue:

/var/folders/pz/gnq0qm5d0xq6drrff4q8tqm80000gp/T/createdmg.ZeDZXwco:435:450: execution error: Finder got an error: Can’t set toolbar visible of container window of disk "mydisk" to false. (-10006)

Looks like there may be errors when running

"/usr/bin/osascript" "${APPLESCRIPT}" "${VOLUME_NAME}" || true

and simply ignoring those potential error may cause confusion.

@maxisme
Copy link

maxisme commented Jun 17, 2017

Make sure the ${APPLESCRIPT} opens the finder window

@aonez aonez closed this as completed in 67f99bc Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants