Skip to main content
Known Participant
September 21, 2005
Question

Adobe Script Manager, also keyboard shortcuts

  • September 21, 2005
  • 3 replies
  • 1203 views
ASM - what does it do - as far as I can tell it is a way of loading scripts at start-up - is that all. I had hoped it was a flexible way of running scripts as one-offs from Bridge (ie not loaded at startup and not remaining loaded on completion).

Another unrelated question. Is there any way of attaching FKeys to anything other than workspaces in Bridge - in particular I would like to be able to open an area of the menu (like the whole view menu), and also to be able to run scripts from a key - as you can with PS using keys attached to actions.

Andrew
This topic has been closed for replies.

3 replies

Known Participant
September 22, 2005
If your menu was defined in a script file that did not contain the one-off script, and then the onSelect handler of the menu loads and executes the one-off script, the one-off script would not be pre-loaded. But it would remain loaded once executed.

As for the long script string thing, tt depends on how you define the string

var a = new String( // your PS script );

"a" is global and will remain in memory

fred = function() {
var a = new String( // your PS Script );
}

"a" is in the scope of fred and will not exist when fred completes

fred = funtion() {
a = new String( //your PS script );
}

"a" (without the "var") is now global and will remain in memory.

In Bridge, there is only one script engine. All scripts load and execute in the same engine. There is no way to unload.

Ergo the namespace stuff.

There's lots of folks looking at this issue for the future. But I have no idea if or when final decisions have been or will be made.

Bob
Adobe WAS Scripting
Known Participant
September 22, 2005
On the keyboard shortcut, if it could be attached to a menu item, including one created by users / scripters - that would do the trick nicely.

On the one-off script thing - if I have a menu item that on-click will load a script, I presume that script is not preloaded prior to that click. Also, say the script calls a long script string that runs in PS, when that PS script is finished does the string remain loaded in Bridge. Doesn't sound like a good idea.

Andrew
Known Participant
September 22, 2005
ASM allows the user to select what scripts load at startup and traps scripts that error on startup. Those that error are flagged to not be loaded on subsequent starts.

In bridge, there's no way to execute a script in a one-off manner. Once loaded, it's loaded.

Sorry, but in bridge 1.x there's no way to link a keyboard click to execute a script.

I am sending this along to the bridge team to consider.

Bob