Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

What is the location of "Javascripts" folder on Mac OS?

Explorer ,
Nov 21, 2016 Nov 21, 2016

I need to tell the users where to put a folder level JavaScript file. For Windows I know the answer. I am working on a Windows 10 x64 PC and found the location of my Adobe Acrobat "Javascripts" folder to be C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\Javascripts\

However, I would like to know where this folder is located on Mac OS (for Adobe Acrobat Reader DC).

Is there somebody running Acrobat Pro DC and/or Acrobat Reader DC who can tell me the returned path of this JavaScript :

app.getPath("app", "javascript");

Thank you!

TOPICS
Acrobat SDK and JavaScript
6.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 21, 2016 Nov 21, 2016

Hi.

/iMac/Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/Resources/JavaScripts/

Translate
LEGEND ,
Nov 21, 2016 Nov 21, 2016

The answer will vary according to whether you have the subscription or permanent license version, and possibly other factors. You need to run this yourself, not find out what someone else gets.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 21, 2016 Nov 21, 2016

Hi.

/iMac/Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/Resources/JavaScripts/


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 23, 2016 Nov 23, 2016

@JR_Boulay: Thank you for this! Is this for Acrobat Pro or Acrobat Reader? Ideally I would like to know the path to both, but Reader is the most important. Ninja Edit: I found that this is the path for Acrobat Pro. Thanks again!

@Test Screen Name: I understand that they will be slightly different on different machines running different software, but I want to point clients in the general direction inside a pop-up dialogue inside a PDF. The problem is that a simple Google of this doesn't reveal any good answers so I was hoping to get them here.

I don't have access to any devices running Mac OS, so I can't do this myself (or I would have).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 21, 2016 Nov 21, 2016

Hmm, is that what it says? It would be a terrible place to add them, because updating an executable bundle can invalidate the signature and stop it running.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 23, 2016 Nov 23, 2016

You'll need to know Mac OS to the extent of being able to tell your users how to display and edit a folder that is hidden and may be locked. My experience suggests that Mac users often have never needed to do either.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2016 Nov 23, 2016

The "User/Library" folder is only hidden from the grandmothers, just hit the ALT key before clicking the "Go to" menu to see it.

The "Applications" folder is not hidden, but it requires an admin account to be modified.

In any case you would enjoy this free utility: http://abracadabrapdf.net/utilities-in-english/pdf-utilities/show_me_the_path-en/


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2016 Nov 23, 2016

but I want to point clients in the general direction inside a pop-up dialogue inside a PDF.

You cannot, for security reasons.

The script that shows these folders paths must ran from the JavaScript folder or from the JavaScript Console, as you will see in my free Show_me_the_path utility.


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 23, 2016 Nov 23, 2016

Thank you for all the extra information! With the basic path information you provided, and the information in this article, I know now the default paths for all different type of Adobe Acrobat DC installations.

The reason I am asking this is because I can't have Acrobat just give the answer to the user. If I could have Acrobat simply run 'app.getPath("app", "javascript");' I wouldn't need to know the paths, I would just have Acrobat give it to the users. It is exactly because of the security settings that I am asking this question. Now I can at least give the user a point in the right direction where the folder is located.

I have absolutely no experience with Mac, so how locked folders or admin rights work there is beyond me. I just want a pop-up telling the user where the folder is and that it could be locked/hidden/whatever. I could probably do more to instruct the user on this, but up till now the users have not been ignorant if it comes to these kind of things, so I think it should be fine (until that special snowflake appears, obviously).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2016 Nov 23, 2016

User's folders (scripts available for this user only):

Acrobat Pro DC:

/MacBookPro/Users/USER-NAME/Library/Application Support/Adobe/Acrobat/DC/JavaScripts/

Acrobat Reader DC:

/MacBookPro/Users/USER-NAME/Library/Application Support/Adobe/Acrobat/DC/JavaScripts/

(yes, it's the same path and it's not a mistake)

App's folders (scripts available for all users):

Acrobat Pro DC:

/MacBookPro/Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/Resources/JavaScripts/

Acrobat Reader DC:

/MacBookPro/Applications/Adobe Acrobat Reader DC.app/Contents/Resources/JavaScripts/


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2016 Nov 23, 2016
LATEST

Admin rights works as same as on Windows.

The User's Library folder is not locked, it's just hidden since Apple believe that grandmas don't have to open it.


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines