Skip to main content
K.Daube
Community Expert
Community Expert
April 4, 2017
Answered

How to get rid of "unsafe script"

  • April 4, 2017
  • 1 reply
  • 1324 views

Dear all,

I want to call a script from a menu and tool bar. In both cases I get the message

     Script Alert
     You are about to run a script in Adobe FrameMaker 2015. You should only run scripts from a trusted source.
     Do you want to run the script?

I can accept this with Yes and then the script is executed.

This is more than annoying. So I tried to use jsxbin. But this does not execute the script at all. In menus.cfg I have:

<Command ETBnudge <Label Nudge object info>
  <Hypertext message openfile H:/Adobe/FrameMaker.13en/AdobeFrameMaker2015/fminit/configui/ETBnudge.jsx>> ««««««« warning about unsafe script
  {Hypertext message openfile H:/Adobe/FrameMaker.13en/AdobeFrameMaker2015/fminit/configui/ETBnudge.jsxbin}} «««««« not executed
  {Hypertext message openfile ETBnudge.jsxbin}} «««««« not taken from %appdata%, not executed

*** the following is executed in menu, but not in tool bar.
  {Hypertext alerttitle Nudging objects: At zoom 100% unit is 1pt... SHIFT+ALT+arrow to nudge 6 units}}

How to get rid of the "unsafe" message ?

Thank You for any idea

This topic has been closed for replies.
Correct answer frameexpert

Hi Klaus,

I am sorry about that. Check this thread where I asked the question and got a satisfactory answer. Thanks.

-Rick

Where is the "trusted source" for FrameMaker 12?

1 reply

frameexpert
Community Expert
Community Expert
April 4, 2017

You should put the script in

C:\Users\<UserName>\AppData\Roaming\Adobe\FrameMaker\<VersionNumber>\Startup

where <UserName> is your Windows login name and <VersionNumber> is the FrameMaker version you are using. (Use 13 for 2015 or 14 for 2017.) If the startup folder does not exist, you have to create it. This should be a "safe place" to run your scripts from.

-Rick

K.Daube
Community Expert
K.DaubeCommunity ExpertAuthor
Community Expert
April 5, 2017

Thanks Rick for the idea

If I do so - have tried already - then the script is invoked at the start of FM and (it's purpose) displays the message.

Dismissing this of course allows me to open a document, invoke the menu/button - but the script can not be invoked.

I have no clue how to define the command in the menu file.

This does not work:

<Command ETBnudge             <Label Nudge object info>
   <Hypertext message openfile ETBnudge.jsxbin>> ««««««« not found in %appdata%?

If I place the full path into the menu file:

<Command ETBnudge             <Label Nudge object info>
   <Hypertext message openfile C:/Users/Klaus/AppData/Roaming/Adobe/FrameMaker/13/Startup/ETBnudge.jsxbin>>

Menu and button opens the jsxbin file in an editor:

Hence my problem is not solved at al - tested in FM-13.

frameexpert
Community Expert
frameexpertCommunity ExpertCorrect answer
Community Expert
April 5, 2017

Hi Klaus,

I am sorry about that. Check this thread where I asked the question and got a satisfactory answer. Thanks.

-Rick

Where is the "trusted source" for FrameMaker 12?