Is there a character limit for prompt()?

I came across a comment on another Web site to the effect that the method overall prompt() will crash PhotoShop if the user types more than 255 characters in the text field. From my brief experience today, I would say that the same limit applies as well to InCopy and InDesign. If anyone else has experienced this?

I guess that the next step would be to use ScriptUI to create a text input dialog box.

... Here's a quick version of a quicker dialogue. I just tested and could paste 29 721 characters in there. No idea where that limit.

text = largerPrompt ("Hello there!");
alert ("you entered "+text.length+" characters");
exit();

function largerPrompt (title)
{
    var w = new Window("dialog", title);
    var textfield = w.add ("edittext", [0, 0, 500, 300], "", {multiline: true});
    textfield.text = "Paste or type text in here\rUse Ctrl+Tab to insert a Tab, Ctrl+Enter to insert a Hard return";
    textfield.active = true;
    with (w.add("group"))
    {
        orientation = "row";
        add ("button", undefined, "OK");
        add ("button", undefined, "Cancel");
    }
    if (w.show()==2)
        return null;

    return textfield.text;
}

Tags: InDesign

Similar Questions

  • Character limit for ESX server name

    Hey everybody-

    Is could someone please tell me what the character limit for the server host of naming for ESX 3.5 Update 4 host computers?     I'm trying to figure whether to apply the limits of Unix (we have a new company naming convention)

    Thanks in advance!

    Steve

    see this KB article

    http://KB.VMware.com/kb/1000064

  • Character limit for name email

    Hello... Is there a limit to the number of characters in an e-mail name? I'll set up a program in Excel to help users develop standard naming conventions and I would like to add a message that tells them if they are over the limit of characters before they paste the name into their Eloqua campaign. Thank you!

    Hi Brian, yes there is a limit of only 100 characters. Your e-mail name should not exceed more than 100 characters.

    Hope this helps

  • Character limit for the entry of short answer?

    Cap 9.

    I use SCORM 1.2, which imposes a limit of 255 characters for the text input, however, I can't find a way to limit the entry of text box for the quiz/short answer, which means that the people of entry much more of 255 characters and submit their responses, but unbeknownst to them, the answer is off.

    Is it possible to apply a limit of characters for pre-built Answer questionnaires/Short models?

    Thank you

    You can limit the number of characters entered in a text entry area.  The maximum number of characters that will now be accepted by a BER 9 Captivate is 150 characters.  But you can set the number being less than that.

    You can certainly include an area for text input in a quiz, but it's usually only when you set the Validation option on WE so that the text of the learner is assessed to see if it matched to a correct answer.  In your case it is not necessary for a correct answer if you want just your comments.  If you do not set a Validation we then report to the Quiz option is gray.

    Developers wishing to receive feedback courses accepted by the LMS often use the value short answer question survey instead of rated.  It seems that some LMS then saves the text entered.

    If it's somewhat a catch-22.  I still believe that your best option is to simply tell users NOT to go more than a few sentences of comments.

  • Is there a maximum limit for Question pools in the Adobe Captivate 8 SCORM project?

    You want to know if it is necessary to create SCORM content with question pools 27 120 issues all together. Does anyone have idea if there is any limitation in SCORM 1.2 or Captivate?

    I didn't know all the data to indicate the Captivate imposes a limit on the number of pools or the number of questions.  However, SCORM 1.2 has a relatively small allocation of data from resumes and this can sometimes cause problems with big quiz.  But the usual problem that cause relates to bookmarking of the course if the learner should end their attempt to session before completing the module and then later resumed where they had left him.

  • Character limit to the custom calculation Script?

    Hello. I have a document that has a text form field. I want to run a custom calculation script which basically says if field 'Number group' = xxxxxxx, so the 'Group name' field should = ABC company.

    I have a list of almost 575 group numbers and names that I need to put in the script. And I have the script works fine, but I'm guessing that there is a limit of characters for the field script? It doesn't let me put my complete list in there.

    Any suggestions on how to work around this problem?

    Thank you

    Brandy

    Yes, there is a character limit for internal JS Editor. The round it is to use an external, such as Notepad.

    Do go to Edit - Preferences - JavaScript and select "Use the external JavaScript editor" and then select the application you want to use.

    Don't forget, however, that you must close the external file each time that change you it if you want to update in the PDF file.

  • Accounts-character limit

    Can someone advise what is the character limit for accounts?

    I noticed that the documentation mentions this is 30, but when you check the area under views it shows 80 and we can add an account liked 30.

    If the field has been changed to 80 are here all other conflicts he might encounter if I go beyond the limit of 30? or they simply updated the doco.

    Thanks for your help

    Nick

    Hi Nick,

    Yes, the account name may be longer than 30 characters in 11.1.1.6. The 30 character limit was the limit old 10g but has been extended to 80 characters.

    This limit is set in the database tables and can go to 80 characters in 11.1.1.6.0.

    SQL > describe documentaccounts;

    Type VARCHAR2 (80)

    80 characters by default and is related to the limit of the OS because the account name is used as part of the file name.

    Documentation has not updated this information to newer versions.

    Thank you

    Srinath

  • Security-character limit

    Hello
    I use the version 11.1.1.2 EPMA, planning, Shared Services and Essbase. I'm having a problem with assignment calc script security to certain groups in EA because the name is too long. Anyone know what that the maximum character limit for groups in Essbase? I need to communicate to my client. Here is the error I get:

    [usnsdb02ex.cqb.chiknet.com.Logistic - NALog-Banana transport T/W/C/R]     Get the Group 12 October 2009 19:54:37 EDT Failed
    Error: 1030009 name is too long (logistics-NALog-Banana transport T, W, C, R) based on the ESSAPI EssGetUser

    Hello

    Following limits are applicable on the name of the Group:-1-Non-Unicode application deadline: 30 bytes of Unicode mode-2 application deadline: 30 characters

    Please read on for more details for limits:-http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_dbag/frameset.htm?launch.htm

    Hope this will help you.

    Atul K,.

  • Is there a limit for research on the function of advanced search for files containing text matching. My search always ends with 500 discoveries but the folder contains several PDF files that match the criteria.

    Hello

    Is there a limit for research on the function of advanced search for files containing a text match? My search always ends with 500 discoveries but the folder contains several PDF files that match the criteria.

    Hi carls76936091,

    Open Acrobat, go to the Edit-> Preferences-> search & check if there is a limit to 500 set, in case if it is to increase it please.

    Kind regards
    Nicos

  • How is the character limit 256 on the applied file names?

    I understand that a file name can be up to 256 characters.

    It seems that the 256 characters includes the total number of characters that make up the complete chain of the folder associated with the file names.  Is that why when I get to the folder (for example) fifteenth in the folder tree that I have run out of characters, even if the name of the file, I'm trying to create has only about 20 characters in there?

    If this is the case, is it possible to adjust the number of allowed characters?

    If this is not the case why is my system not allowing me to use more than (for example) 20 characters when I am in a long series of files?

    Hello

    256 character limit applies as well the full path. So, if you have a long series of records, it does not accept the name of the file.  You will need to either move the files to shorten the path, or rename the folders to shorten the chain for the path name.

  • Re: Memory limit for Satellite A50 492

    Hello

    I replaced Intel Celeron with Pentium M in my Toshiba Satellite A50 492 (PSA50E-01P02VPL). I did this partly because the manual says there is a limit superior of memory on Pentium (2 GB) than the Celeron (1 GB). Unfortunately mobile still sounds so equipped with more than 1 GB of RAM. Could you please help me how to use 2 GB with this material?

    When I traded the processor I had to program cmos or something to make it possible to run a Pentium M.
    Maybe other programming is necessary for a memory limit?

    I have updated the bios to version 1.40.

    Here are some links:
    [care saying maximum extension: 2Go | http://ce.computers.toshiba-europe.com/innovation/jsp/supportMyProduct.do?LNG=20&service=CE#tab0;]
    [manual explaining the upper limit of the memory with Pentium | http://ce.computers.toshiba-europe.com/innovation/tracker.jsp?file=http%3a%2f%2fsupport1.toshiba-tro.de%2ftedd-files2%2f0%2fuserman-pl-20090202081853.zip]
    [Description of Kingston that laptop: http://www.ec.kingston.com/ecom/configurator_new/modelsinfo.asp?id=1&SysID=19152&mfr=Toshiba&model= Satellite + A50 & search_type = & root = & LinkBack = & Sys = 191 52-Toshiba-Satellite + A50-492 & distributor = 0 & submit1 = Znajd % C5 %BA%]

    The third limit of 1 GB of source States, but they are wrong in saying 512 MB is the maximum memory that can be inserted, cause now that I came across (PC2700, DDR 333 MHz) 1 GB in the first Bank and the second one is empty.

    Hello

    Limitation of the memory depends on the chipset of the motherboard.
    It s containing no software, so nothing will help you increase memory or to break limitation.

    It is also the din mentioned user manual

    Welcome them

  • Character set for the words

    Hello

    Does anyone know what charset LPX uses for the words when you export a project at noon?

    I have set in Hungarian language of OS X. The correct character set for the Hungarians should be ISO-8859-2 (Latin 2), yet when I export a logical project that uses these words at noon, the external drive is not displayed correctly the

    That is to say. o is displayed as Ăł or similar, any set of characters I use in other software

    P. S.

    I submitted a bug report, as this seems to be a bug, but there was no reaction yet on the report

    PS.

    Never mind, I just realized the character encoding used is UTF-8

  • What a time limit for care?

    I waited more than 10 minutes and more for others to make their movements.

    What a time limit for care?

    There are players who walk away a game when they are behind but never

    you know, if you wait for a long time and then must get yourself out.

    A very juvenile manner to act.

    This game is fun when you have a partner of responsible gaming, but lately, there has been a lot of

    Obviously ignorant who play in an abusive manner.

    A reasonable period of time would solve a lot of this.

    If you do not travel in time, your release of the game...

    ROFL. You will need to address this with each different game, you're talking about, by contacting their support, or post in the forums. This isn't a general/portal for games information center.

  • The "64K limit for the total size of all the values in a registry key" rule - not more valid?

    http://support.Microsoft.com/kb/256986
    - more information -> Description of the register article, it is said:

    Note There is a 64K limit for the total size of all values of a key.

    I don't see that this rule can be valid any longer?

    In my Windows 7 SP1 x 64, I have at least 15 keys with values that add up to more than 65 535 bytes.
    In fact, I have more than 15 values (strings, binary and multiple channels) which, by themselves, have some sizes larger than 65 535 bytes.

    Here are a few examples.

    Native Instruments Kontakt 5 installation;
    [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\B354255567BB3E5479D39FE554E87D08\Features]
    -This key contains 91 string values, where 90 are under 250 bytes, but the last of them. "FE923650A" has a length of 67 401 bytes of data.

    Autodesk 3ds Max Design 2011 installation;
    [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\FFECC85A69B39040E99BEA59BF78957B\Features]
    -This key contains 14 values of string, ranging from 1 (the 'P' value) byte to 75 426 bytes (value "max7"), bringing the total size of 116 944 bytes.

    Installation of Windows 7 by default.
    [HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache]
    -This key contains a binary value of monkey 'AppCompatCache' that has a length of 259 768 bytes of data.

    Another installation of Windows 7 by default;
    [HKLM NT\CurrentVersion\Perflib\CurrentLanguage]
    -This key contains 2 channels multiple values: 'Meter' (87 950 bytes) and 'Help' (418 345 bytes), a total of 506 295 bytes for this key.

    Finally, once again Windows 7 installation by default.
    [HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage2]
    -This key contains 3 DWORD and 5 binary values with the value "ProgramsCache" being the most important of all with its 795 404 bytes
    either a sum of 807 639 bytes for this key.

    Hello

    Check this box:

    http://social.msdn.Microsoft.com/forums/en-us/windowsgeneraldevelopmentissues/thread/84944bfe-4bf5-47cd-93ac-4d09076fcd40

    This problem can also be published on MSDN Forum.

  • I was wondering if there was a limit to the AMOUNT of files (not size) that I could transfer at the same time?

    Hey there, I was wondering if there was a limit to the AMOUNT of files (not size) that I could transfer at the same time? usually I go abou 40K files of external references on a regular basis, I would like to know if there is a limit to this (80K maybe?, or one does not exist?)

    Thank you

    Original title: Maximum file transfer

    Hi Chad,

    Thanks for posting the question in the Microsoft Community forums.

    Looks like you need more information on the transfer of the files of more than 80 k to external devices.

    1. have you tried to send files over 40 k?

    2. What is the brand and model of the computer?

    There is no practical limitation on the number of files that can be transferred from one computer to external devices. Although there is no file transfer limit depends on several factors, first externally you use, the memory of the computer file system if it can retain enormous transfer rates.

    Hope this information helps. Get back to us if you have more queries about Windows.

Maybe you are looking for