Ability to share scripts among users on the same Mac

Hello

In our design studio, we use InDesign with some scripts to automate tasks. The problem is that when a change of users from one Mac to another, scripts must be installed manually in the correct location. Is it possible that I can put the scripts in a folder (say/use/share/Indesign_Scripts") and that Indesign always uses this place?

For now, I copied the scripts in the user model in / etc, but this doesn't always work because some users use different language settings (en_GB-> en_US)

Hello

Shortcuts are good, even if some people are getting lost in front of alerts "Cannot find the original file"..., but not in Design Studio, I'm sure.

I tried another way that works, so there is no reason to keep this hide.

3 types of scripts:

-----------------------

1 - simple one is placed in the 'Startup Scripts' folder of each user:

It looks like this:

#targetengine "menu"
var myScPath = "~/Shared/Scripts/Studio_menu.jsx";
     if (File (myScPath).exists)
                  app.doScript(File(myScPath));
     else alert ("No network file find..., or whatever alert");

-----------------------

2nd is menu loader (' Studio_menu.jsx), so this one 1 script calls while ID begins.

It looks like this: (thanks to Marc Autret)

#targetengine "Scripts"

var fcaTitle = "Scripts";          // name (parent menu item) displayed in ID menu
var fcaSubTitle1 = "&Task1";     // name (name of script) displayed in ID menu
var fcaSubTitle2 = "&Task2";    // name (name of script) displayed in ID menu

var fcaHandlers1 = {
          'beforeDisplay' : function(ev1)
                    {
          mySc1Path = "~/Shared/Scripts/Task1.jsx";     // script, executor of task 1
          ev1.target.enabled = File(mySc1Path).exists;
                    },

          'onInvoke' : function()
                    {
                    app.doScript(File(mySc1Path));
                    }
          };

var fcaHandlers2 = {
          'beforeDisplay' : function(ev2)
                    {
          mySc1Path = "~/Shared/Scripts/Task2.jsx";     // script, executor of task 2

          // conditions to enable/disable menu item
          ev2.target.enabled = File(mySc2Path).exists && app.documents.length > 0 && app.activeDocument.saved;
                    },

          'onInvoke' : function()
                    {
                    app.doScript(File(mySc2Path));
                    }
          }

var fcaMenuInstaller = fcaMenuInstaller ||
(function(mnuTitle, mnuSubTitle1, mnuSubTitle2, mnuHandlers1, mnuHandlers2)
{
// 1. Create the script menu action

var s1mnuAction = app.scriptMenuActions.add(mnuSubTitle1);
var s2mnuAction = app.scriptMenuActions.add(mnuSubTitle2);

// 2. Attach the event listener
var ev1, ev2;
for( ev1 in mnuHandlers1 )
          {
          s1mnuAction.eventListeners.add(ev1,mnuHandlers1[ev1]);
          }
for( ev2 in mnuHandlers2 )
          {
          s2mnuAction.eventListeners.add(ev2,mnuHandlers2[ev2]);
          }

// 3. Create the menu item
var fileMenu = app.menus.item("$ID/Main").submenus.item("$ID/&Help");  // new menu item's location

var SubMenu = fileMenu.submenus.add(mnuTitle,LocationOptions.AT_BEGINNING);     // where
var SubMenu1 = SubMenu.menuItems.add(s1mnuAction,LocationOptions.AT_END);
var SubMenu2 = SubMenu.menuItems.add(s2mnuAction,LocationOptions.AT_END);

return true;
})(fcaTitle, fcaSubTitle1, fcaSubTitle2, fcaHandlers1, fcaHandlers2);

---------------------

3rd are the real script files placed somewhere in the network (mySc1Path1, mySc1Path2)

Users call scripts in the menu.

Admin, updates them easly.

Jarek

Tags: InDesign

Similar Questions

  • Is there a way I can share files between users on the same Mac without an internet connection?

    Hello world!

    Quick question here: is there a way I can share files between users on the same Mac without an internet connection?

    I have two users say that A and B. If I go the long way via the 'Go' menu > 'Computer', I ended up being told to contact my computer or the network administrator for assistance. Both users are admin one and file sharing is allowed in system preferences... I have to admit that I use 10.9.5 because my MacBook Pro would not work with OS Xs national parks.

    Any ideas would be cool because I'm sure that it used to work fine with "Snow Leopard" without being connected to the internet - or should I just send an email to myself and recover the files on the other user :-) to recover my USB is

    Choose go to folder from the Finder Go menu, provide/Users/Shared/as the path and place the files.

    (142147)

  • Libraries to share with one another in the same Mac OSX

    My mac has several partitions with different OSXs.

    Can I share itunes libraries I made in an OSX with itunes in the other OSXs in PC?

    Home sharing work in the end? Do I have to allow the Internet to itunes.app in order?

    And supplementary question is, if the above is possible, which is for sharing rules, IE. a library, X, in the itunes of the score has nothing and another library, Y, in the partition of another itunes music title A, B, C, then, what happens when they share libraries? Music tracks A, B, C will be added to X, or all titles there must be gone for nothing?

    Note:

    Versions of iTunes I use are mainly ver11 and ver12 and operating system versions that I use are mainly 10.6 and 10.8.

    SaramandarG wrote:

    ....

    Can I share itunes libraries I made in an OSX with itunes in the other OSXs in PC?

    ....

    Direct access to the library is only possible if all versions of iTunes are identical.

    SaramandarG wrote:

    Home sharing work in the end? Do I have to allow the Internet to itunes.app in order?

    Home sharing works only between two or more computers that are running on the same network.

  • Sharing a VM between users on the same Mac

    I'm trying to share the VM between users on my Mac.  I followed KB1005196 instructions to change the permissions of the beam and move to the shared folder.

    The machine works well on the main account, but the other user account get the following error:

    Could not open the file "/ users/shared/Virtual Machines.localized / Windows XP Proessional 2.vmwarevm/Windows XP Professional 2.vmdk ': insufficient permission to access file.

    I am running OS 10.6.5

    VMWARE 3.1.2 (332101)

    Thank you

    Hmmm, okay let's try to change the permissions once. This time, we will also change the permissions on the entire virtual computers folder.

    Simply copy and paste each order one directly into the Terminal. Please make sure that you do this under the account mattebury on your computer.

    chmod 777 users/shared/Virtual\ Machines.localized
    chmod-r 777 users/shared/Virtual\ Machines.localized

    If you type this in manually and not copy and paste, please make sure that the R - is a capital R, not a lower case a.

    This will change the permissions on everything in and including the virtual computers folder.

    Try now.

  • IMac is not able to share multimedia files with multiple users on the same computer.

    We just bought a new IMac that we were very excited.  We have phones Apple and iPads, replacement and ten year with a new Mac old PC made since.

    Now, the trouble begins. For more than ten years Windows had several usernames on the same machine and have been able to have a shared folder only for music, pictures and video that my iTunes program and others could acsess and share from several user names. This kept all in one place for new photos families by me or my wife and our 30 gigabytes of music that comes from our CDs was available at bolt of us. Now in train to implement on IMac should be easy but is impossible.  after transferring the music to my login information, it cannot acsess all files on my login. I am not even able to share or provide his acsess. I can move the iTunes folder to my shared folder. She can get acsess now but iTunes says that the library file is locked. I worked with care from Apple on the phone for that sold, but they believe it will not be possible without creating two copies of the 30 gigabytes of music for each of us. who would take more hard drive when it failed too.  Sharing is not any help. These files were before iTunes. I'm not pay 30 dollars a month to store in icloudcor use a google reader slow to the Internet connection when everything's fine here. Apparently Applow programmers do not believe in sharing of multimedia files between two users on the same device, even if a PC does that very well. My choice here is so far have duplicates of all the photos, music and videos loaded on the disc for me and my wife, charge all the media for an external hard drive which for some reason any all Apple programs will share, or return the mac to another PC that will be able to make several connections with sharing music and photos. Apple if you are reading this you are 10 years behind on that. Not everyone is born in the last five years and bought their music on iTunes to be able to use home sharing. Home sharing cannot help this. your applications should be able to be told to use the media files shared without import copies to readers of the user. I am very disappointed. Someone else has any ideas for that?  I have pictures, not iPhoto. I have a week more to be able to return it. I'm not interested in making a fake account that is always connected to share or maintaining of me constantly connected. It should have been easy, I had to be happy to play with new software.

    Photos, iPhoto and iTunes libraries must appear on an external hard drive that is formatted as shown below to be used by multiple users on the same Mac:

    So get a properly formatted external HD and move your iPhoto/pictures of her as well as your iTunes library.  This way all your iMac users can access and use both libraries.

    An alternative to the external HD method is to partition your internal hard drive into two partitions, one for libraries.  It is formatted as shown above and be large enough to contain the libraries and allow the expansion of libraries.

  • How to share files & folders with other users on the same PC

    We have 2 users on our PC I can find how to 'share' on a network, but not on the same PC (I'm a user 'low tech') all the headings of 'aid' seemed to refer to a network of more than 1 PC

    Files/folders that you want to share between users on the same machine should be placed in the Public, C:\Users\Public directory. That is what concerns the Public directory. MS - MVP - Elephant Boy computers - don't panic!

  • share 'Start' content and presentation of the tile with multiple users on the same Tablet Windows RT

    Hello

    Can someone tell me if it is possible to share/copy the content start and the tile layout with multiple users on the same shelf?

    Hello

    Welcome to the Microsoft community.

    Unfortunately, you will not be able to share or copy the content start and available to tile with multiple users. However, you can rearrange the tiles and select the content to be displayed manually on each of the user accounts.

    See these articles for more details:

    Customize the splash screen

    http://Windows.Microsoft.com/en-in/Windows-8/start-screen#1TC=T1

    Reorganization of the tiles start

    http://Windows.Microsoft.com/en-in/Windows-8/rearrange-tiles-start

    I hope this helps. Let us know if you need more assistance.

  • I created a form to complete 4 page. I would like to place a button at the bottom of page 4 when you click inserts another copy of the form in the existing file. I have the user to have the ability to easily create muliple copies of the same 4 pages in

    I created a form to complete 4 page in Acrobat. I would like to place a button at the bottom of page 4 when you click inserts another copy of the form in the existing file. I want the user to have the ability to easily create multiple copies of the same 4 pages in a single file. It is possible with Acrobat? I use a PC.

    It is possible using models and JavaScript, but if it is to work with the player, users will need to use the desktop version (Windows/Mac) of 11 Reader or CD player. Here is a link to an older article which explains the basics: Planet PDF - a lesson in the templates for Adobe Acrobat

    Note that this is a bit outdated, but it should help you get started. If you have any other questions, post them in the Acrobat JavaScript here forum: JavaScript

  • Is it possible to set up for multiple users on the same computer to avoid entering the e-mail and the password

    Original title: Multi users

    Is it possible to set up for multiple users on the same computer to avoid entering the email and password every time that a new user want to check emails?

    Hello

    Welcome to the community forums of Microsoft and thanks for posting the question. According to the description, you need help in the creation of multiple user accounts. I've surely you will help find a solution on the issue.

    What is the operating system installed on the computer?

    User accounts, several people can easily share a single computer. Each person can have a separate user account with unique settings and preferences, such as a screen saver or desktop background. User accounts control files and programs users can access and what types of changes users can make to the computer. As a general rule, you'll want to create standard accounts for most computer users.

    If you use Windows Vista or Windows 7, see the article below:

    Create a user account

    http://Windows.Microsoft.com/en-in/Windows7/create-a-user-account

    http://Windows.Microsoft.com/en-in/Windows-Vista/create-a-user-account

    For Windows XP users:

    How to create and configure user accounts in Windows XP

    http://support.Microsoft.com/kb/279783?WA=wsignin1.0

    Hope this information helps. Answer please if you have more queries about Windows.

  • How can I import Firefox bookmarks, now stored in the folder of the user on the same PC (new), in Firefox?

    How can I import Firefox bookmarks, now stored in the folder of the user on the same PC (new), in Firefox? I exported my old PC Firefox bookmarks in a folder [Windows 8] on my new PC.
    When I use the ease of importing from Firefox, it will only import a bookmark at a time - and then it inserts the bookmarks all the main pages on the site marked with a bookmark, not just the one I initially put bookmark. Also, it does not matter the information stored in the bookmark tag.

    Sure thing.

    1. Open the dialog box run by pressing the Windows key by pressing R
    2. Type of %appdata% in the immediate window and press ok
    3. Open the Mozilla folder
    4. Open the folder of Firefox
    5. Open the profiles folder
    6. Copy the folder that is located in this folder on a USB
    7. Install and run Firefox on the new computer
    8. Closing of Firefox
    9. Repeat steps 1 to 5 on the new computer
    10. Open the folder that you copied from your old computer
    11. Copy the contents of this folder into the folder inside the folder of the profile on the new computer
    12. Allow Windows to replace all records in doubles with those you are copying to the computer is prompted

    If you have problems with these instructions, or if you would like more information, feel free to comment below.

  • Delete all orders of the user at the same time?

    Hello

    There is nothing in the code to delete all orders of the user at the same time? (by code or function)

    Get all enable them command user?

    Thank you

    Hello Oz,

    Call ScriptCmdReset()

    to return to the State of brand new tiara, which, in most cases, unload all global variables and commands that you have created by program since then.

    Brad Turpin

    Tiara Prodcut Support Engineer

    National Instruments

  • Two users on the same PC. How to run the application even for two users at the same time?

    Hello friends,

    I have two user accounts on my pc. Is it possible to run the same application (for example: DEFRAG or disc cleanup utlities) for two users at the same time? I mean, these utlilities work by all of the computer or user account? That would mean the same application to perform for a single user in the background and foreground to the user, or I'm totally lost in space?

    Thank you for your comments

    You should run Disk Cleanup in each user account. Do not try to shut it down or change user when defragmentation; system files may be damaged. You must stop the defragmentation, log off, restart the defragmentation and don't really no point for it. MS - MVP - Elephant Boy computers - don't panic!

  • Windows Vista detects the wireless network but will not connect to it. Two other users in the same office connect without difficulty.

    The title says it all really.

    I was connected and working normally for about an hour this morning, until suddenly the connection has been lost.
    Windows detects the wireless network but will not connect. Two other users in the same office connect without difficulty.
    Help, please.
    Thank you.
    original title: vista detection network but will not connect

    Hi JulianBeach,

    1. you have made no changes to the computer before the broadcast took place?
    2. What is the exact error message you get?
    3 is connected to the domain of the computer?
    4. what happens when you try to connect to the network?

    Try the steps from the following link:
    Windows wireless and wired network connection problems
    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    Additional information:
    Wireless network card: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/wireless-networking-frequently-asked-questions

  • Some programs will not work for me as an administrator, but will work for other users on the same computer.

    Original title: some programs will not work for me as an administrator, but will work for other users on the same computer. I did a system restore as well as uninstalling and reinstalling programs that do not work without result.

    Did you run the System File Checker?

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista
    http://support.Microsoft.com/kb/936212/#appliesTo

    Try Safe Mode (you have this problem in Mode safe?).

    315222 - a Description of the Options in Windows XP (or Vista) Safe Mode boot
    http://support.Microsoft.com/default.aspx?scid=kb;en-us;315222&FR=1&PA=1&SD=HSCH

    If you cannot reproduce the errors in Mode safe see if you can further isolate the cause.

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/default.aspx/KB/929135

    Try running ChkDsk to check your drive for errors. Right click on your drive icon / properties / tools / error checking.  First try checking not be (read-only) to see if it reports any problems file or hard drive.  If this is the case, start by checking the two boxes, in no other rerun.

    Create another user and see if they have the same problem as your current user.

    Difficulty of a corrupted user profile
    http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

    Difficulty of a corrupted user profile
    http://windowshelp.Microsoft.com/Windows/en-us/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    811151 - how to copy user data to a new user profile
    http://support.Microsoft.com/?kbid=811151

    Description of Windows Easy Transfer for Windows Vista
    http://support.Microsoft.com/kb/928635

    How to restore the security settings the default settings?
    http://support.Microsoft.com/kb/313222/#appliesTo

  • Documents of users on the same computer

    Best way to move permanently (transfer/copy/paste) the documents, Favorites, photos of other users on the same computer?

    Ok

    Right-click on the Windows Orb and select and click on Windows Explorer. The THW Windows Explorer pane opens. Select the user that you want to move, double-click my documents of the user data. Highlight everything in the folder my documents for this user and right click Select the copy.

    Now, go to the Admin user and select and double-click it to open the folder My Documents from the user admin put the cursor insode the folder and right click and select Paste. We should now copy into the folder.

    Perform the same procedure for all other types of data you want to copy in the records for the admin user.

    Best regards

    ERICO

Maybe you are looking for

  • Can not see the now playing screen

    I don't know how to return to the screen of playing while listening to a podcast.  The User Guide does not help. Can someone instruct me?

  • type is incorrect and is worsererer

    Take a look at your iTunes library and particularly to the column TYPE for music 9i just have music on in my itunes) Crawling in East entered incorrect "gender." That is to say a torn mp3 is seen/listed as a purchased AAC file. You see it too? I do n

  • Satellite A100 - expansion to 4 GB RAM

    * Good at all.* I am a happy owner of a Satellite A100-044 with Windows Vista Basic.I read the manual that I can increase the RAM to 4 GB. I bought 2 per GB 2 bars on the site of Kingston, but do not work together. I also updated the BIOS. I asked ex

  • Qosmio F30: New Bios released 3.70

    Hello friends: -. It's the new Bios for users of F30 3.70 Bios Date BIOS version: 23/10/2007 Download it here: -. http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/download_bios.jsp

  • M40X-309: I can not find wireless device in Device Manager

    As soon as I bought my M40X-309, I've updated for Win XP Pro. Everything works well, but I can't use my wireless device. I can't find the Device Manager, it shows only one network device (other than 'real'). When I tried to change his player windows