Why did I lose my variables after the release of function? [CS6 - js]

I try to read my file (if it exists) channel for obtaining the name of print style. I did it in function.

var mSty = "; Insiders variable

GIS of the var; var to exist-Yes/non-indicateur

function findFile (GIS, mSty) {}

fname = app.activeDocument.filePath + "/" + "prn_style.txt";

If (!.) {Queue (fname). Exists)}

GIS = false

}

on the other

{

GIS = true

var f = File (fname); ////////////////////////

f.Open ("r");

{while(!f.EOF)}

mSty = f.readln ();

}

f.Close ();

} / / end if exists

return of GIS;

MSty return; Here 'mSty' stil exists...

}

and here 'mSty' is not already at the exit. Why?

If (mSty == null) alert ('no file') else alert (mSty);

So I can't get a file string, cause the variable disappears.

In short: I need to get two variables of a function.

Hello

you do not call the function (at least in the example), means return ;-),...

Try

var test = someFunction();

function someFunction() {}

var01 = 'odd ';

var02 = true

return [var01, var02];

}

alert (test [0] + "|")   "+ test [1]);"

Tags: InDesign

Similar Questions

  • Why did I lose games following after a windows update? Solitaire, Spider Solitaire, chess, Freelance, Minesweeper?

    During the last two windows updates, games - Solitaire, Spider Solitaire, Freelance and chess have been removed from my computer.  Why is this happen and how do I get them back...   They are included in the Windows 7 that came on my computer.

    Hello

     

    Method 1: Check the updates have been installed.

    To check, follow these steps:

    a. Click Start, in the search box, type in update

    b. click on windows Update

    c. click view update history

     

     

     

    Method 2: See the following steps and see if that helps:

    (a) click Start, type Turn windows feature ON or OFF, press enter

    (b) to develop games and place a check next to all listed games

    (c) restart the computer

  • Why my iMac turns so slowly after the upgrade of the Lion in El Capitan?

    Why my iMac turns so slowly after the upgrade of the Lion in El Capitan?

    Just what do slow down? Rotation beach balls?

    Run and view the results here so that we know more about your configuration.

    http://etrecheck.com/

    EtreCheck

    https://discussions.Apple.com/docs/doc-6172

  • Firefox process is left running in memory after the release

    The firefox * 32 process remains running in memory after the release of Firefox. You cannot restart firefox without killing the process (ctrl-alt-delete...) or by restarting the computer.

    I'm running Windows 7 pro 64-bit and the Swedish version of Firefox 6.0.2.

    I did have this kind of problem with previous versions of Firefox.

    Firefox is already running but is not responding

    Profile in use

    Check and tell if its working.

  • Buy unlocked iPhone 7 right after the release date

    Friends good day! Let's say I want to buy an iPhone 7 right after the release date before apple officially begins selling the devices free SIM card. I'd be able to come simply to store and buy, for example, an AT & T phone to use with my operator? Because I know that they would be not selling sim free phones in the first two weeks. Or do I have to buy a plan as well and become a customer of AT & T? In other words, I need now a unlocked device, and can I get one without waiting for the start of the free features of SIM card sale. Thank you!

    If you buy any iPhone outright directly from Apple full paying, it is carrier unlocked.

  • Update via subject: Firefox after the release date

    I noticed that in the latest versions of 4-6, after the official release date (for example today Firefox 38.0 was moved to release and pushed to free servers and for manual download on the site) as the day coming on: firefox does not update the program and said I use the latest version (37.0.2).

    Is there a reason for this?

    My guess: version stable/Adaptive QA in the case of a major bug
    -Tire due to an uncorrected critical vulnerability
    -Not overwhelming the server load
    -Help organizations deployment of delay of 1 day instead of trying to push several critical supplier updates every 2nd Tuesday of the month.

    I bet on the top 2 reasons.

    More information available on the subsequent restitution process after the release date? Is there a period of 1 to 2 days before the additional downloads are allowed via the built-in updater?

    • I read the timing of the release, but after the next day of the release date, there is no additional info provided

    Thank you in advance!

    fired 38 of Firefox version and updates are disabled for the time being to investigate and resolve some crashes on Windows and a version of Firefox 38.0.1 is underway and will be published in the next few days.

    You can continue to use Firefox 37.0.2 for now.

  • Firefox continues to run even after the release in Manager Windows tasks and has about as much memory to affect other applications

    Firefox continues to run even after the release in Manager Windows tasks and has about as much memory to affect other applications. Firefox.exe must be completed manually in Windows Task Manager. Is there a software patch that will force the release of memory and all the resources of the computer that was using Firefox, when it is finished?

    This has happened

    A few times a week

    == I see only the program in the Manager of tasks over the past months but the problem could took place for more

    See this:
    https://support.Mozilla.com/en-us/KB/Firefox+hangs#Hang_at_exit

  • Shut down the PC after the release of the labview application.

    Dear friends,

    I want to make application in labview so that... when somebody will start PC this labview application should run. and PC shouldn't be able to do any other task instead of running the labview application. and PC should get the stop after the release of the application in labview. Please tell me how to do this.

    Kind regards

    Vijtin

    I think you're able to rebuild on a photo (I can't record to 7.0). If this isn't the case you take a Labview courses such as 'introduction to the introduction to the Labview programmers' and if you see in my first post to you, you will find the description of the shutdown command.

  • The host has not enough space on the boot partition to store the image upgrade. It takes a minimum of size_in_MB. After the release of space or perform an installation from the CD-ROM.

    Hi everyone, the difficulties in trying to update the Update Manager. ESX4.1 to ESXi5.0

    Error I get is below to correct the scan before update:

    The host has not enough space on the boot partition to store the image upgrade. A minimum of 299MB is necessary. After the release of space or perform an installation from the CD-ROM.

    There is enough space in the local disk

    Size of filesystem used Avail use % mounted on
    / dev/sdd5 4.9 G 1.6 G 3.0 G 35%.
    / dev/sdd2 2.0 G 107 M 1.8 G 6% / var/log
    / dev/CCISS/c0d0p1 99 M 67 M 27 M 72% / Boot
    / dev/CCISS/c0d0p2 4.9 G 1.6 G 3.1 G 34% / esx3-installation
    / dev/CCISS/c0d0p1 99 M 67 M 27 M 72% / esx3-installation/boot
    / dev/CCISS/c0d0p7 2.0 G 101 M 1.8 G 6% / esx3-installation/var/log

    Cannot continue installation due to the lack of space and don't have the option upgrade CD directly (of complicated issues)

    Do you have any suggestions?

    Thank you

    It sounds like this host has already been improved 3.x! In this case you will not be able to upgrade to 5.x using the Manager to update because of the small partition/boot (99 MB).

    to remedy the hosts against a basic upgrade

    ... You cannot use Update Manager to upgrade to 5.0 ESXi host, if the host has upgraded ESX 3.x to ESX 4.x. These hosts have not enough free space in the partition/Boot to support the process of update Update Manager. Use either interactive or scripted upgrade.

    André

  • where is mocha in after the effect cc and cs6

    where is mocha in after the effect cc and cs6 I foud associated anaything

    Mocha AE is not a separate application that you access or put it in After Effects. You use of After effects.

    See After Effects help for more details:

    http://helpx.Adobe.com/after-effects/using/tracking-stabilizing-motion-CS5.html

  • lose the url variable after the notation in the session

    I have a coldfusion helpdesk application that is secured by a system of connection application.cfm.  Once a ticket is submitted, it sends an email with a link to view the ticket.  The link contains a variable to url for the link between it and the correct ticket.  If the user is not connected, the url variable is naked after the connection process.  Is it possible to prevent this?

    From your description, at least 2 applications are involved. A single application takes the user not authenticated to the login page. As well as the URL variables. I imagine that a second request then takes him - without variables URLS! -from the login form to the page of the form of action, where his letters of credence are validated.

    If so, then this is the expected behavior. You can replace it as follows. Enable session management and implement the following on the login page:

    This translates into ColdFusion, storing the value of each variable to the URL as a variable of the same name in the scope of the session. Thus, the values of URL.x, URL.y, etc. will be stored, respectively, as SESSION.x, SESSION.y, etc... You could then transfer of respective session values in URL field in the links in the subsequent pages.

  • Counter: Why is 'Task is' returns True after the time of the HIGH?

    Realized that my other thread has been put out on the rails by... myself.

    Started testing the "task performed is" function on a counterexample over;

    Why is it returns "True" after time and not up AND down?

    And more still-so, how can I get him back 'True' after the time of low AND high? How can I get it to tell me that it's "done" after 9.1seconds instead of the ~ 3 seconds like today. Is there a better setup that I can use? (the numbers are arbitrary)

    A couple of notes, assuming that we have to deal with default impulses that are active top with a low idle state.

    1. in general, a pulse is defined with a 'time in idle state', first followed by a time in the status of the pulse.  Therefore, by definition a pulse (and so also a task of pulse) is indeed at the end of its active state (high).

    2. HOWEVER, the impulse first in no pulse train DO NOT USE 'small time' entry to set his time in idle state before the pulse.  Instead, it uses the "Initial deadline" entry for the first pulse while 'Low Time' is used for all subsequent impulses.

    3. as a result, when you generate a single pulse, 'Low Time' is meaningless.  Only 'Initial period' is important.  Therefore fitting your low downtime desired within the' original' instead of ' Low Time.

    This type of agreement has always seemed awkward at best to me.  I think that aid should be a lot more important emphasis on the idea that 'Small time' gets ignored for pulse unique.  I mean, the info * is * there but it's pretty easy to miss before you know to look for.  In any case, hope this helps you in your application.

    (An alternative you might consider is to set the pulse with a high idle state.  Then you wire the "Initial delay" to set the first time high and your task would end after 'small time' you set.  Just be aware that when you work with reverse polarity pulses, you should check the output terminal to see what is true by default as well until you begin your task and after remove you it from the State.   A given Council could be biased with meter output in poor condition, so when your task wants to reverse the polarity you might see a rising edge, the task begins in its state of rest high and then a front coming down like the ends of the task and the jury returns to its weak State by default.)

    -Kevin P

  • Why attached used pps files opened after the latest Automatic update of the ie8?

    Attn: Microsoft Brainiacs; IT IS VERY ANNOYING!
    attached pps files won't open if clicked in outlook express/ie8 after automatic update more recent.
    When I try to open files pps attached, this is what I get.
    a box with a red x will appear and this is the message;
    "this file has no program associated with it for performing this action.
    Create an association in the FOLDER OPTIONS Control Panel."
     
    Before the automatic update, this function worked fine.
    Also, the association for pps files is still there in the Folder Options Control Panel.
    and more if I save the pps file attached somewhere / anywhere and then click on it, it opens fine.
    .. This failure to launch opening pps files attached, that happened after the latest Automatic update,
    .. just one more why people hate automatic updates or updates of any kind.
    like the previous functions of work suddenly and inexplicapbly no longer work after the update took place!
    So what's the cure for this annoying problem?
    E-mail address is removed from the privacy *.

    I have XP SP2 and PPS PPViewer 7 NOT VISTA
     
    That's what my watch key

    HKEY_CLASSES_ROOT\.pps\PowerPoint.slideshow.8
     
    not HKEY_CLASSES_ROOT\PowerPointViewer.SlideShow.11\shell\Show
     
    I also tried renaming it as shown below, and it will not let me NOW WHAT?
     
    where can I find IE7 to down load? all I see on the web and the site of MS is downloads for IE8
     
    Hi wwollmuth,

    I'm not sure from your post what version of Vista you are using or if you use the Viewer for Powerpoint as opposed to full Powerpoint (2003 or 2007?), but I can try to give you help to fix.

    For. Files PPS (Microsoft PowerPoint slide show)

    • Click Start, type regedit.exe and press ENTER
    • Navigate to the following branch:

    HKEY_CLASSES_ROOT\PowerPointViewer.slideshow.11\shell\Show

    • Click view , and then click Rename
    • Type the word Open so that the show is replaced with the Open command
    • If you have the PowerPoint 2007 Viewer is installed, repeat the steps above in this key, thus:

    HKEY_CLASSES_ROOT\PowerPointViewer.slideshow.12\shell\Show

    • After having changed from Show to Open, close the Registry Editor window.

    For. PPT (Microsoft PowerPoint Presentation) files

    • Click Start, type regedit.exe and press ENTER
    • Navigate to the following branch:

    HKEY_CLASSES_ROOT\PowerPointViewer.show.11\shell\Show

    • Click view , and then click Rename
    • Type the word Open so that the show is replaced with the Open command
    • If you have the PowerPoint 2007 Viewer is installed, repeat the steps above in this key, thus:

    HKEY_CLASSES_ROOT\PowerPointViewer.show.12\shell\Show

    I'm not sure from your post what version of Vista you are using or if you use the Viewer for Powerpoint as opposed to full Powerpoint (2003 or 2007?), but I can try to give you help to fix.

    For. Files PPS (Microsoft PowerPoint slide show)

    • Click Start, type regedit.exe and press ENTER
    • Navigate to the following branch:

    HKEY_CLASSES_ROOT\PowerPointViewer.slideshow.11\shell\Show

    • Click view , and then click Rename
    • Type the word Open so that the show is replaced with the Open command
    • If you have the PowerPoint 2007 Viewer is installed, repeat the steps above in this key, thus:

    HKEY_CLASSES_ROOT\PowerPointViewer.slideshow.12\shell\Show

    • After having changed from Show to Open, close the Registry Editor window.

    For. PPT (Microsoft PowerPoint Presentation) files

    • Click Start, type regedit.exe and press ENTER
    • Navigate to the following branch:

    HKEY_CLASSES_ROOT\PowerPointViewer.show.11\shell\Show

    • Click view , and then click Rename
    • Type the word Open so that the show is replaced with the Open command
    • If you have the PowerPoint 2007 Viewer is installed, repeat the steps above in this key, thus:

    HKEY_CLASSES_ROOT\PowerPointViewer.show.12\shell\Show

    Dave D
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    Hi wwollmuth,

    I'm not sure from your post what version of Vista you are using or if you use the Viewer for Powerpoint as opposed to full Powerpoint (2003 or 2007?), but I can try to give you help to fix.

    For. Files PPS (Microsoft PowerPoint slide show)

    • Click Start, type regedit.exe and press ENTER
    • Navigate to the following branch:

    HKEY_CLASSES_ROOT\PowerPointViewer.slideshow.11\shell\Show

    • Click view , and then click Rename
    • Type the word Open so that the show is replaced with the Open command
    • If you have the PowerPoint 2007 Viewer is installed, repeat the steps above in this key, thus:

    HKEY_CLASSES_ROOT\PowerPointViewer.slideshow.12\shell\Show

    • After having changed from Show to Open, close the Registry Editor window.

    For. PPT (Microsoft PowerPoint Presentation) files

    • Click Start, type regedit.exe and press ENTER
    • Navigate to the following branch:

    HKEY_CLASSES_ROOT\PowerPointViewer.show.11\shell\Show

    • Click view , and then click Rename
    • Type the word Open so that the show is replaced with the Open command
    • If you have the PowerPoint 2007 Viewer is installed, repeat the steps above in this key, thus:

    HKEY_CLASSES_ROOT\PowerPointViewer.show.12\shell\Show

    Dave D
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Why did I'm 0x8007f0f4 cannot install the update

    can help you to fix this problem after the update, I get 0x8007fof4 can help you fix this

    Hello

    Did you change your computer before this problem?

    You can follow this link & check if the problem persists:

    You may receive a "0x8007F0F4" error code when you try to install the updates on the Windows Update Web site or the Microsoft Update Web site

    Hope the helps of information.

  • When I turn on my computer, already set up profiles disappear and are replaced by 'Kiosk' and 'other users' options that require passwords. I can get into 'other users' and find my previous user accounts, but lose them again after the reboot.

    I bought a laptop with Windows 7 installed a few days ago. I started to set up user accounts, administrator and a guest. So far, I had been able to shut down and restart with the accounts of users even reappear. I turned on my computer and two 'user accounts' had replaced my previous. Named "kiosk", which requires a user name and password which I do not have access, and one named 'other users' that requires a user name and password. I type in comments and no password and then I can access the guest account. When I disconnect my administrator profile is available next to my usual guest account. Restart the "kiosk" and "other accounts" reappear. If it's any help, as soon as I put on my computer, I had named MDX kiosk and administrator accounts. I deleted the account kiosk MDX. I don't know if this is related at all. It is not necessarily a problem, but a disadvantage however and I panicked when this popped up on my computer.

    Yes, you can uninstall MDX (it is called the digital experience of Microsoft) and it will remove the kiosk account and no trace of it, and then restart your machine. All other accounts on the machine should stay, but I would like to make a backup first. This should solve your problem. Associated with the store, you bought from should have done that for you, why they failed, I have no idea (we are instructed to do before the release of the machine to customers). If you don't mind asking me, where did you buy the machine?

Maybe you are looking for

  • Transfer game

    I recently bought a new iPhone SE and would like to transfer my progress of game in my old phone. How can I do this?

  • SERIOUS BUG! Clear cookies does not

    After that I updated to Firefox 36.0.4, option of th to clear cookies does not work! DESCRIPTION:Tools/Options/Privacy/settings / "" when I quit firefox it should clear automatically: Cookies "" I check the box. Restart et seq. checkbox is now unchec

  • How to activate the spell checker on a specific site?

    I disable by spelling error on site and now I can't enable it, because he can't find the settings for that hePlease tell me how I can enable it backthe site is a forum

  • 8500 wireless offline

    Suddenly my HP said wireless offline, struggle with this problem.

  • has detected a particular error

    my flash drive not responding while watching a video on YouTube and then my audio driver just off but in the taskbar notification shows that the volume is 100% so I restarted my laptop and now I can listen to songs. This incident happened to me 3 tim