Get the name of the diskette of starting JS

I have an applescript script which get the name of the boot to help drive

the value macname to to name of boot disk

I wonder if the same thing can be done in a javascript that runs in InDesign CS3...

I need to make the scripts work on platforms and am new to Java script.

Thank you for all your comments...

Mydisk var = GetStartUpDisk();
Alert ("the name of my boot drive is------" "+ Mydisk +" \ "");

function GetStartUpDisk() {}
If (File.fs == "Macintosh") {}
myScript var = 'tell application \"Finder\"\r.
myScript += "set myStartUpDisk to get the name of the startup Disk."
myScript += 'end tell\r;
myScript += ((parseInt (app.version.substr (0, 1) + '\"Adobe application InDesign CS to say')-2) + '") + "\"\r ";
myScript += 'say args\r script ";
myScript += ' set the value name \"myScriptArgument\ ' myStartUpDisk\r value ';
myScript += 'end tell\r;
myScript += 'end tell\r;
app.doScript (myScript, ScriptLanguage.applescriptLanguage);
var myStartUpDisk = app.scriptArgs.getValue ("myScriptArgument");
}
Else if (File.fs == "Windows") {}
var myStartUpDisk = String (Folder.system) .charAt (1);
}
Return myStartUpDisk;
}

Tags: InDesign

Similar Questions

  • get the program cannot start because mfc 110u.dll is missing from the computer.

    Hello, get the program cannot start because mfc 110u.dll is missing from the computer. Try reinstalling the program to fix this problem.  Thank you

    Hi Dennis,

    Thanks for the reply.

    This error code is related to the AVG program or utility system AVG and you can try to uninstall and reinstall the program, and check if it helps.

    For more information on this you problem refer to the AVG form:

    http://www.Avg.com/us-en/AVG-forums?sec=thread&Act=show&ID=149672

    WARNING OF THIRD PARTY

    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    When you disable Antivirus:

    Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    Hope this information helps. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • Bought LR6 DVD but the installer does not connect to the internet for I can register it.  I downloaded the trial version to work around this problem, but I can't get the program to start.  I get the same message that I should connect to the internet and c

    Purchase DVD LR6 Adorama, but Setup does not connect to the internet so that I can record.  Internet works fine.   I have Adobe account.

    I went to Safari to Chrome and downloaded the trial version in the hope to bypass the DVD version, but I can't get the program to start.    I get the same message that I should connect to the internet and connect.  It seems impossible after 3 hours.  Spent an hour chatting with the support of the India.

    Also remove the cookie file and reg Lightroom then enter the serial number and check.

    Windows:

    Press Windows button (located between Ctrl and Alt buttons) with the key R together at once, you will get a command window.

    Type below command and press the enter"" key.

    programdata %

    It will open the ProgramData folder. inside locate Adobe folder.

    Go to Adobe > Lightroom.

    Open Lightroom and delete all the files inside,

    Then run LR 6 and enter the serial number,

    Mac:

    (1) right-click on the icon in the Finder, then select the 'Go - To Folder' option.
    (2) you will get a text box, type in the following command and then press the 'return '. (" Do not miss ~ symbol" "')

    ~/Library

    It will open the folder of the user's library.

    (3) then navigate to Application Support > Adobe > Lightroom.

    Open Lightroom and delete all the files inside,

    Then run LR 6 and enter the serial number,

  • get the calendar week start date

    Hi all

    Is there a function or method in oracle 11g to get the calendar week start date? for example. If 1st week begins January 3, 2011, the function should return January 3, 2011.

    Thank you
    Sunita

    Try this

    SQL> select next_day(trunc(sysdate,'YYYY'),'SUN')+1 from dual;
    
    NEXT_DAY(
    ---------
    03-JAN-11
    

    The solution given by Mahesh is a gross... 3 jan was just for example... not to hardcode

  • How to get the timestamp to start at zero hours?

    Hello.

    I build software that records the values to Excel.

    The user can specify how long the test should run for, and the elapsed time should be defined as a string in hh: mm [:]

    The only problem is that the timestamp begins at 01:00 (calibrated 1904-number I guess). How can I get the count from 00:00:00, or perhaps to subtract the time at the beginning then it starts at zero.

    If you run the VI, you will understand what I mean.

    Thank you!

    Hi auto,.

    You must use relative time instead of absolute time - see the attachment...

  • I get the following when starting my laptop Dell - stop error message: 0x000000ED (0 x 84308900, 0 x 00000000, 0XC000009C, 0x00000000)

    Hello

    Since last night I get the above error message on my computer at startup.

    I can not start in any other mode and tried to use the recovery console (starting on the DVD) using FIXBOOT and CHKDSK /R but still no luck.

    I also tried searching on the error code with no luck.  I recently bought an IPOD but was already using itunes and the computer worked very well after the IPOD synchronization.

    I'm stuck and would be grateful if someone could help me solve this problem.

    THX,

    Eliot

    It is proably a record broken. Restart your computer and press F8 when Windows starts to load. Select the last known configuration of God in the menu, then press OK. I had the same problem, and that it resolves. Maybe a program to train register is broken.

    ---------------------------------------------------------------------------------------------------------------------------------
    If the answer can help, mark it as "useful". He he has solved the problem, mark it as 'reply '!
    Andy
  • Can not get the server to start the CD ISO of ESX

    I have a Dell 2950 that I trying to load VMware ESX 4.1 update 1 on. I can't the server to boot from the CDROM. It starts to boot from the CD, but all I get is the message "ISOLINUX 3.63 2008-04-10 Copyright blah blah". I tried several CD at this point and that you always get the same thing. I use InfraRecorder 0.52 and it verifies the data after writing.

    Any ideas?

    I just had a similar problem with a nested ESXi installed tonight.  Turns out be downloading (it was corrupted).  Check the md5sum for your download against the value published with the download.

  • Cannot get the buttons to start the animation of edge

    Hi all.

    I have a simple animation I want to deposit in the form of an article from indesign that I use for an ipad app. The problem is the buttons. I can't make it work at all with the animation.

    I need essentially a button so that the animation will start and also to show a cross (close) button and then once the close button is clicked, reverse the animation back out of the page.  I tried all sorts of ways via the animation Panel and Panel of buttons but can not even animation to come and even less to show hidden until the outbreak of the close button.  All the other buttons in the other articles are very well during the video release, url etc but no animation... I'm obviously something very wrong?

    Really appreciate any help with this as its hold on my life :-)

    Thank you very much

    GAV

    You mentioned the Animation Panel, which is a red flag. Native animations are not supported in DPS. Create your animation using another tool, such as Adobe Edge.

  • NB500 - where to get the English Quick Start Guide?

    I just bought a NB500 Netbook to the Portugal so the Quick Start Guide is in Portuguese, and I need a copy in English.

    Can someone tell me where I can get one?

    Hello

    Check the download page Toshiba user manual:
    http://EU.computers.Toshiba-Europe.com/innovation/generic/SUPPORT_PORTAL/
    Here you click on manual Toshiba

    Welcome them

  • get the problem when starting native/cascades beta sdk - "QML preview is not available.

    Hello friends,

    When I start native/cascades sdk beta (latest version). It shows an error message "QML previw is not available. I am also attaching the screenshot of it. And my PC has no external graphics card.

    Please tell me why I get this message?

    Thank you best regards &,.

    Dinesh

    Hello dinesh,

    Looks like you don't have a graphics device that supports the preview mode. You must have a fairly modern graphics chipset with sufficient support to use the live preview Momentics openGL. Details are provided in the section 'Manufacturer of Cascades' to https://developer.blackberry.com/cascades/download/releasenotes/. Unfortunately, unless you upgrade your graphics card, you should probably use the Simulator or device to display your user interface.

    Tim

  • Get the error when starting the server weblogic 10.3.6

    Hi guys,.

    Can you please throw some light on this error:

    C:\Oracle\Middleware\user_projects\domains\atg_domain\bin > startWebLogic.cmd

    .

    .

    Memory of JAVA arguments:-Xms1152m-Xmx2048m

    .

    Start mode of WLS = development

    .

    CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar; C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\sys_mani

    .

    Path = C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\native; C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\native; C:\Oracle\MIDDLE~1\patch_ocp371\profiles\

    .

    ***************************************************

    * To start WebLogic Server, use a username and *.

    * password assigned to an administrator-level user.  For *.

    * server administration, using the WebLogic Server *.

    * the http://hostname:port\console console *.

    ***************************************************

    from weblogic with the Java version:

    Java version "1.7.0_55".

    Java (TM) SE Runtime Environment (build 1.7.0_55 - b13)

    Java for 64-bit Server VM (build 24, 55 - b03, mixed mode)

    WLS starting with line:

    C:\java\jdk_7\bin\java-client-Xms1152m-Xmx2048m-Dweblogic.name=AdminServer-Djava.Security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy

    Error: Could not find or load the class main Uxmx2048m

    C:\Oracle\Middleware\user_projects\domains\atg_domain\bin >

    Thank you

    Looks like there is an extra character added - did copy you + paste the Xmx value in scripts?

    Error: Could not find or load the class main Uxmx2048m

    Delete it and retyping the values.

  • get the error when starting weblogic server in jdeveloper

    get an error when you start weblogic server in jdeveloper

    The NEWSPAPER (its sequel shows):

    < 25 July 2013 19:19:15 IST > < opinion > < WebLogicServer > < BEA-000331 > < started WebLogic Admin Server "DefaultServer" domain "DefaultDomain" running in development Mode >

    < 25 July 2013 19:19:15 IST > < opinion > < WebLogicServer > < BEA-000365 > < Server State has changed in the RACE >

    < 25 July 2013 19:19:15 IST > < opinion > < WebLogicServer > < BEA-000360 > < server started operation >

    The user ' directors [weblogic, directors] =' the role of the administration. All jobs by administrators must go through an Administration Port.

    Authentication failure connecting to the IntegratedWebLogicServer application server. Please check the settings.

    Cannot complete the commissioning of the IntegratedWebLogicServer application server.

    [IntegratedWebLogicServer Instance server stops.  All running applications will be terminated and canceled.]

    [End of forcing of IntegratedWebLogicServer]

    Taskkill /F/PID 1620

    Process is complete.

    PLs help me

    User, please tell us your jdev version!

    Somehow your credentials are corrupted. Two possible solution:

    (1) open your folder, system11.1.1.xxxx open the DefaultDomain\servers\DefaultServer\security folder and edit the boot.properties file. Delete the part '(AES)... ". «"after the username and password and write the new example of username = weblogic", password = "Welcome1" Save the file and try to restart the integrated server. Once the server starts the entries are encoded again.

    (2) If 1) doesn't work, remove all of the DefaultDomain file and create a new instance of WLS in jdev.

    Timo

  • Get NameNotFoundException while trying to get the timer to start cl

    Hi all
    I'm NameNotFoundException while trying to watch the stopwatch of the startup class.

    Commonj.timers.TimerManager, I have it configured in the ejb - jar file. My MDB XML. I use the statrtup class to initialize some static immidiate of components to the active state of the MDB. I have to initialize the timer Manager object immidiate active state of the MDB that is configured in the file ejb - jar.Xml. I wrote this search logic in the postStart() of the ApplicationLifecycleListener method, the called method but the search fail logic, the same logical aspect works in class MDB (MDBTimer.java). I tried different ways, I don't find a solution, finally, I write the problem here.


    Could a WebLogic experts you can help on this?

    Here I give you my code.


    WebLogic - application.Xml


    <? XML version = "1.0" encoding = "UTF - 8"? >
    < weblogic application
    xmlns = "http://www.bea.com/ns/weblogic/weblogic-application" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
    xsi: schemaLocation = "http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd" >
    <>earpiece
    my.examples.mdb.timer.TestApplicationListener <-listener class > < / listener class >
    < / earphone >
    < / weblogic application >


    EJB - jar. XML

    < ejb - jar xmlns = "http://java.sun.com/xml/ns/javaee" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
    xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee."
    http://Java.Sun.com/XML/NS/J2EE/EJB-jar_3_0.xsd ".
    version = "3.0" >
    < some enterprise beans - >
    > by message <
    MyTimerMDB < ejb-name > < / ejb-name >
    my.examples.mdb.timer.MDBTimer < the ejb class >-
    < / ejb-class >
    < resource-ref >
    < description > my default timer Manager < / description >
    Timer/MyDefaultTimer < res-ref-name > < / res-ref-name >
    commonj.timers.TimerManager < res-type > < / res-type >
    Container < res-auth > < / res-auth >
    < res-sharing-scope > shared < / res-sharing-scope >
    < / resource-ref >
    < / message-driven >
    < / enterprise beans >
    < / ejb - jar >


    MDBTimer.java


    package my.examples.mdb.timer;

    Import javax.ejb.MessageDriven;
    Import javax.ejb.TransactionAttribute;
    Import javax.ejb.TransactionAttributeType;
    Import javax.jms.Message;
    to import javax.jms.MessageListener;
    Import javax.jms.ObjectMessage;

    Import commonj.timers.Timer;
    Import commonj.timers.TimerManager;

    @MessageDriven (mappedName = "TEST_Q" name = "MyTimerMDB", activationConfig = {}
    @javax.ejb.ActivationConfigProperty (propertyName = "acknowledgeMode", propertyValue = "Auto-reconnaître").
    @javax.ejb.ActivationConfigProperty (propertyName = "destinationType", propertyValue = "javax.jms.Queue").
    ({@javax.ejb.ActivationConfigProperty (propertyName = "transactionType", propertyValue = "Container")})
    @TransactionAttribute (TransactionAttributeType.REQUIRED)
    / public class MDBTimer implements MessageListener {}

    public static TimerManager Manager = null;

    @Override
    {} public void onMessage (Message arg0)
    System.out.println ("onMessage () method called...\n\n");

    If (arg0 instanceof ObjectMessage) {}

    ObjectMessage msg = (ObjectMessage) arg0;
    try {}

    If (msg.getObject instanceof String ()) {}
    Thread.Sleep (1000);
    System.out
    .println ("received message > >" + msg.getObject ());
    }
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    }
    System.out.println ("onMessage () method returned...\n\n");
    {if(Manager==null)}
    Manager = MyUtil.getTimerManager ();
    }
    }

    }


    TestApplicationListener.java

    package my.examples.mdb.timer;

    Import commonj.timers.TimerManager;

    Import weblogic.application.ApplicationException;
    Import weblogic.application.ApplicationLifecycleEvent;
    Import weblogic.application.ApplicationLifecycleListener;

    SerializableAttribute public class TestApplicationListener extends ApplicationLifecycleListener {}
    Public Sub preStart (ApplicationLifecycleEvent evt) throws ApplicationException {}
    String logStr = "> > > > () TestApplicationListener.preStart > > > >";
    System.out.println (logStr + "entered...");
    super.preStart (evt);
    System.out.println (logStr + "leveaing...");
    }

    Public Sub postStart (ApplicationLifecycleEvent evt) throws ApplicationException {}
    String logStr = "> > > > () TestApplicationListener.postStart > > > >";
    System.out.println (logStr + "entered...");
    super.postStart (evt);
    TimerManager timerManager = MyUtil.getTimerManager ();
    System.out.println (logStr + "timer Got Manager == >" + timerManager);
    System.out.println (logStr + "leveaing...");
    }
    Public Sub preStop (ApplicationLifecycleEvent evt) throws ApplicationException {}
    String logStr = "> > > > () TestApplicationListener.preStop > > > >";
    System.out.println (logStr + "entered...");
    TimerManager timerManager = MyUtil.getTimerManager ();
    System.out.println (logStr + "timer Got Manager == >" + timerManager);
    super.preStop (evt);
    System.out.println (logStr + "leveaing...");
    }

    Public Sub postStop (ApplicationLifecycleEvent evt) throws ApplicationException {}
    String logStr = "> > > > () TestApplicationListener.postStop > > > >";
    System.out.println (logStr + "entered...");
    super.preStop (evt);
    System.out.println (logStr + "leveaing...");
    }

    }


    MyUtil.java

    package my.examples.mdb.timer;

    Import javax.naming.InitialContext;
    Import javax.naming.NamingException;

    Import commonj.timers.TimerManager;

    public class MyUtil {}

    public static TimerManager getTimerManager() {}
    TimerManager timerManager = null;
    try {}
    InitialContext ctx = new world;
    timerManager = ctx (TimerManager)
    . Lookup("Java:COMP/env/Timer/MyDefaultTimer");
    System.out
    .println ("@@@Looked - up using java: comp/env/timer/MyDefaultTimer:")
    (+ timerManager);
    } catch (NamingException e) {}
    e.printStackTrace ();
    }
    Return timerManager;
    }



    }

    Podie salvation,

    I tested your program as long as your have posted in the forums. And I got the same error NameNotFoundException. After debugging some more on what I find pre-departure that until the ApplicationLifecycleListener) (as well as the postStart() method runs correctly the EJB Module isn't really gets activated laugh.. why the resource-ref <>which we specified in the file "ejb - jar.xml" doesn't get nvoked so until that time, there is no such Timer available on the server while we get NameNotFoundException.)

    If somehow we can do search for "timer/MyDefaultTimer' after the preStart() and postStart() method is executed successfully, then we have no problem.

    .
    .
    Thank you
    Jay SenSharma

  • Satellite P200-1EE - cannot get the camera to start

    After plunging through the forums, I noticed a lot of people have had problems with their bed with web cameras.

    Before that the camera was just in a bad mood, for turning on and off indicating other applications had locked its use (when they n even on t, not even in the background), but it has stopped working.

    I managed to uninstall the camera driver and download the version of Vista to the Web site. The software seems to have installed fine, but when you start the program it says "activate camera" and even by pressing the shortcut keys, I can't the camera to begin with, just the software with a gray screen.
    I checked Device Manager and not its use.

    Help please! I don t want to have to go out and buy a new camera.

    Hello!

    I have two Toshiba laptops and no problem with the webcam. The two webcams work fine and without problems.

    Have you downloaded the driver from the Toshiba site?
    http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download drivers

    Perhaps a BIOS might also solve the problem.

    Did you install the laptop with the Toshiba recovery disc or disc of Microsoft?

    Good bye

  • How to get the Explorer to start in 'computer '.

    I tried several suggestions on the web without success.
    I want to start Windows Explorer to "computer with nothing extended."

    Ok
    I searched "Computer" and pinned to the start screen.
    It opens as I want.

    Thank you
    James

Maybe you are looking for

  • I can't install Windows 98

    Hi just got my formatted C:. I want to install windows 98 Second edition as soon as possible. I had XP Professional and when I press on "start the computer with the cd writing"Format C:"and support it anli everything but it stops while it is to recre

  • Displayport ENVY causes battery lose detection and performance max brightness

    I have a HP ENVY 17 - 3D was released in early 2012, running Windows 7. It has 1 HDMI port and 2 additional display ports. The graphics card is ATI HD 7690 M XT and supports switchable graphics on the fly. The processor chip is 2nd generation Intel Q

  • 'read sound.vi' delay on first use

    If someone could try the following On my laptop a 3S ago delay in this first run. If the vi is re-run the sound plays back instantly. Close the vi and open again and the 3 delay is back the first time it is run. (The default values for connection tim

  • Re-initialize the sliders in graphs

    Hello I can not re - initialize the sliders in the graphs in LabVIEW (I tried in 8.2 and 2010, same problem). I tried to use the "selected cursor" property and initialize it with an empty array. When I run it, no more sliders are selected (which is w

  • Enable hardware virtualization?

    I have a TouchSmart IQ507 I believe, model type dual-core Core 2 Duo.  So, how can I enable hardware virtualization in the bios, because there is no option for this?  Running virtual machines is like a dog on this machine because I can't enabled hard