Skip to content
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

Fails with macOS via AppleScript (write permissions to / directory) #12

Open
DrJJWMac opened this issue Aug 31, 2021 · 0 comments
Open

Comments

@DrJJWMac
Copy link

I am trying to invoke the command via an AppleScript on macOS 10.15.x

'''
.... (set up the script) ...
do shell script '"/Library/TeX/texbin/pdfcrop --margins '72 0 72 0' (source file path here)"
'''

The script fails with the error below.

!!! Error: Cannot write tmp file `tmp-pdfcrop-NNNNN.tex' (Read-only file system)!

I believe this is because writing to the root directory is no longer permitted. I've tried various combinations of "with administrator privileges" and "sudo " suffixes and prefixes on the command to no avail.

I would appreciate knowing that this problem would be fixed in a future update.

I can invoke the script in the terminal and will generate a bash script to handle the parameters. I prefer an AppleScript because it is easier to "drag and drop" a file onto an AppleScript (and impossible to do so with a shell script).

In the meantime, thanks for making this script available!

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

1 participant