Prompt for export location

Hello,
I am creating a simple script to automate exporting a document as a pdf. How can I prompt the user for the export location with a file browser dialog? (Using javascript). Here is the script:
// choose PDF preset
var myPDFExportPreset = app.pdfExportPresets.item("PRESS");
// get document name
var myDocName = app.activeDocument.name;
// remove .indd from filename
var newDocName = myDocName.substring(0,myDocName.length-5);
// create exported filename
var myFile = File("/c/"+newDocName+" - PRESS.pdf");
// export the PDF
app.activeDocument.exportFile(ExportFormat.pdfType, myFile,false, myPDFExportPreset);
Right now it exports the PDF to /c/ - but I'd like to be able to browse for the export location. Can this be done?

You can select a folder with Folder.selectDialog()
Try with below code:
// choose PDF preset
var myPDFExportPreset = app.pdfExportPresets.item("PRESS");
// get document name
var myDocName = app.activeDocument.name;
// remove .indd from filename
var newDocName = myDocName.substring(0,myDocName.length-5);
//select output folder
var myOutputFolder = Folder.selectDialog( 'Select output folder');
// create exported filename
var myFile = File(myOutputFolder + "/" + newDocName + " - PRESS.pdf");
// export the PDF
app.activeDocument.exportFile(ExportFormat.pdfType, myFile,false, myPDFExportPreset);
Shonky

Similar Messages

  • N97 - Prompt for memory location when installing a...

    Hi,
    When installing applications on my previous N95 / N73 the installer would prompt me to make a decision on whether I wanted to install the application to the Phone or Mass Memory.
    My N97 appears to automatically make this decision for me, and from what I can tell appears to be defaulting to the Phone Memory.
    Is there a way to make the N97 prompt for the location like the N95?
    Thanks
    Iain

    Disabling UAC does not fix the problem.  UAC is there for a reason.  Disabling it just stops the prompt which results in an installation failure (Access is denied). Its like sticking gum in a lock because you don't like putting your key in it everytime
    you want to open the door.  The gum does solve the problem of not having to put the key in but the result is that you are no longer able to open the door.
    The idea of IPP is that anyone can install a printer without having admin rights from any internet connected location.  Its shouldn't be difficult to install.  It certainly appears that the issue I am having has to do with differences in the OS
    somewhere between 2003 and 2008.  Maybe even the version of IPP that is built into each OS version.  I'm just hoping someone an confirm this theory.  If it doesn't work right in 2003 then at least I know and I can stop wasting my time figuring
    out why it doesn't work.
    I should probably also mention that our clients are Windows 7.  Its possible that the combination of Windows Server 2003 and Windows 7 is where the problem comes in.  When I get time I will try to load up a Windows XP machine and see if the results
    are different.

  • LR 4 Beta Installer reports Not Enough Disk Space before prompting for installation location

    Would be nice it the LR installer prompted for a install location before reporting that there is not enough disk space. While there is not alot of space on my system drive, there is 400MB on the disk I wanted to install it to. (Running XP)

    And LR4 is about 1GB..........

  • Send to OneNote from Outlook does not prompt for location

    Hello
    Since the most recent update, the Send To OneNote feature in Outlook does not prompt for a location but seems to be defaulting to the same notebook each time - even if it is not the active notebook. I've tried repairing Office 365 but it did not work. Is
    this a known issue?
    Thank you
    Simon

    Hi,
    Just checking in to see if the information was helpful. Please let us know if you would like further assistance. 
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Why does my compiled exe ask for the location of subvis when installed on another computer?

    Hello,
    I have a piece of deployable software I have developed and so I have created two build specifications to produce an .exe file and an installer.
    The build specification for the installer includes the compiled exe and all of the required SubVIs to reside in a sub directory in the install directory and when it installs on another computer the SubVIs are located in the correct place.
    However, when I install and run it on another computer, a dialog box appears prompting for the location of the SubVIs, I select the one that it is asking for and it then loads the remaining VIs and runs as normal.
    Is there something fundamentally I'm missing in the way SubVIs are called after using an installer, or is there a way to bundle them into the .exe/installer so that I don't receive the dialog box?
    Many thanks in advance,
    Sam
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets
    Solved!
    Go to Solution.

    Yes - but on my computer, I believe the exe is finding the files from the .exe build, rather than the installer location.
    In fact, I just renamed the default build directory (where it places the installer / exe after the build and I get the same dialog - it is looking in C:\LabVIEW Builds\etc.
    rather than...
    C:\Program Files\My Software\subvidirectory
    So maybe it is the problem you suggested Yamaeda? If so - is there a solution/workaround for this?
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Live meeting - After click Join the Meeting, it prompted for MeetingID, Entry and Location are blank, need to key in information manually

    Live meeting issue:
    After click Join the Meeting, it prompted for MeetingID, Entry and Location are blank, need to key in information manually
    1. It seems OK on Live meeting client settings.
    2. Then uninstall and reinstall live meeting client and addons. live meeting version now is 8.0.6362.41
    3.can schedule live meeting success.
    but issue persists.

    Live meeting issue:
    After click Join the Meeting, it prompted for MeetingID, Entry and Location are blank, need to key in information manually
    1. It seems OK on Live meeting client settings.
    2. Then uninstall and reinstall live meeting client and addons. live meeting version now is 8.0.6362.41
    3.can schedule live meeting success.
    but issue persists.

  • Can Saveas prompt for location, but still use a system generated filename

    I have a client that's wanting to save a pdf file of a datawindow.
    But, they want the program to prompt them for the location to save the file.
    It looks like you can do a saveas and leave the filename blank.
    and, it will prompt the user for the path/filename
    is there a way, that I can prompt them.... but, put the filename that was generated by
    the program, on the filename line
    I thought I had done something like this, for import of a file
    but, I don't think I've done a saveas
    does this make sense?
    basically.... I want the user to be able to chose the path
    but, not necessarily the filename... maybe just put, the generated one
    can this be done on the screen, that's prompted for... in the saveas routine?
    i guess I could have them specify both... if I had to

    Ask for the destination path with GetFolder() and then add the file name to the value returned by
    GetFolder()
    Best regards,
    AUS Julián Tagarro
    NeoSistemas SRL

  • Unable to create game center account.  Keeps prompting for location and birthdate

    Whenever I try to create a game center account, it loops always asking for location and birthdate.  The phone says the Apple ID has not yet been used in Game Center, tap continue to setup your account, then it prompt for location and birthdate again.  Any ideas how to get account setup?

    I'm gettng this same message.  I have been using the same Apple ID for all my iOS device, but I ended up creating a new Apple ID for my wife's iPhone.  After I verified the new Apple ID, I logged out of Game Center, and entered my newly created Apple ID.  Now I'm stuck in the same loop as you.  Were you able to get out of it?

  • Preview and print a Crystal report prompted for the sa password

    Dear All,
    Our customer has Crystal report add-on to be installed. When we Preview and print a Crystal report, we got a window prompted for the sa password. Even we type in a correct password, it still says wrong password...
    Every time when I open my report in Crystal Basic 2008 on the server, then go database expert >> My connections >> click + in front of the connection name, it asks my sa password. I type in my password then save and close. Next time when I open the report and go my connections, I have to type in my password again. This only happens on one customer.
    Any idea? Thanks a lot.
    Regards,
    Yuka

    Hi Yuka,
    1) All their SAP client workstation, they have to have use SQL2008 CD and install SQL Client on it
    Correct, MS does NOT support MDAC or WDAC when connecting to SQL 2008.
    2) Then go ODBC >> SQL Native Client 10.0 >> Create a new connection to SAP server. Should we use sa user or another use that has the same authorization as sa?
    Correct again if they are also using ODBC to connect, as for using the sa account or creating a new one is up to you. I suggest creating a Crystal account with what ever rights your app needs, this way if tracing it turned on etc. you can confirm who is actually running the report.
    3) Then from MY Crystal report, I have to use ODBC connection as well?
    Just to clarify, if you created your reprots using OLE DB then they can do so also. But you need to update your connection properties. Open each report click on Database, Set Location, scroll down to OLE DB and expand and then choose MS SQL Server Native 10 as your OLE DB provider, fill in all the logon info and then verify the database. Do the same for each subreport also.
    Save your report and either send them the new one or if you are doing this remotely then replace the original report.
    VERIFY your reports to confirm they still return correct data and do work as expected.
    Or if you are using ODBC then yes you do select the MS 10 driver with a new DSN. Then do the above to update the reports to all use ODBC as their data sources.
    Hope this is all clear now....
    Thanks again
    Don

  • Why does Outlook keep prompting for password

    We have seen our community members ask questions about Outlook keeps prompting for credentials many times. This issue could be caused by numerous reasons. Below is a list of the most common reasons for this problem:
    Outlook is configured to prompt you for credentials
    Incorrect password cached in credential storage
    Required Authentication Settings for outgoing server and incoming server
    Outlook Anywhere is not configured to use NTLM Authentication
    Corrupt Outlook profile
    Slow or unstable network connection
    Antivirus programs
    Shared calendars
    Outlook is configured to prompt you for credentials
    If you are using an Exchange account, there is a setting in your Outlook profile to always prompt for logon credentials. To find the setting, please follow:
    1. In Outlook 213, go to File tab > Info >
    Account Settings > Account Settings…
    2. Highlight your Exchange account and click Change button.
    3. Click on More Settings button.
    4. Select the Security tab.
    5. Under the User Identification, make sure the “Always prompt for logon credentials” option is not selected.
    If you are using other types of email, please make sure you have ticked the option “Remember password”.
    Incorrect credential cached in Credential Manager
    Your Windows system stores user credentials on your computer. If the cached credentials are incorrect, you will be prompted for password. This issue usually happens after the password for your domain user account is changed. Before your password changed,
    you saved your credentials. The stored credentials are not overwritten when Outlook triggers the authentication prompt even if you enable the Remember my credentials option.
    To fix this issue, you need to remove the corrupted credentials, follow these steps:
    Click Start,      click Control Panel, and then click Credential Manager.
     Note If View by is set to Category, click User Accounts first, and then click Credential Manager.
    Locate  the set of credentials that has Outlook in the name.
    Click the name to expand the set of credentials, and then click Remove from Vault.
    Repeat step 3 for any additional sets of credentials that have the word Outlook in the name.
    Required Authentication Settings for outgoing server and incoming server
    Different email provider may need different authentication settings. Please make sure you have set the server settings correctly. You can contact your email provider to gather the information.
    In general, we select the “My outgoing server (SMTP) requires authentication” option and the first bullet “Use same settings as my incoming mail server”.
    In addition, click on the Advanced tab and check if you have enter the correct Server Port Number and select the correct encrypt type. Below is a screenshot for an IMAP account:
    Outlook Anywhere is not configured to use NTLM Authentication
    The Outlook Anywhere feature allows you to access your Exchange account remotely from the Internet when you are working outside your organization's firewall.
    When using Outlook Anywhere to connect to your Exchange server, we need to choose
    the authentication method among Basic Authentication, NTLM Authentication and Negotiate Authentication. The difference among them is the way that the passwords are sent when connecting to the server. With Basic Authentication,
    the password is sent in clear text. Using NTLM Authenticationcan significantly reduce the number of password prompts.
    To check the authentication setting, please go to File > Account Settings > Account Settings,
    select the Exchange account, and then click
    Change. In the Change Account wizard, click
    More Settings, and then click the Connection tab. Click the Exchange Proxy Settings button and now, you can see the settings under
    Proxy authentication settings. Try to change the authentication to
    NTLM Authentication and then check the issue again.
    Slow or unstable network connection
    If your network connection is slow or unstable, Outlook may lose connection to the mail server. When Outlook try to reconnect, it will prompt for the credentials. To verify this, please switch to a stable network environment and then check if this issue
    persists.
    Corrupt Outlook Profile
    Corrupt profile may cause Outlook to no longer remember your password. Please try to create a new mail profile in Control Panel and reconfigure your email account in the new profile to fix the issue. To create a new mail profile, you can refer:
    http://support.microsoft.com/kb/829918
    Antivirus software
    Antivirus software usually integrates into your Outlook and it may cause some conflicts. Try to temporarily turn off your antivirus software to check if the issue will be gone.
    Shared Calendar
    Shared calendars can impact the user credentials, this issue may also occur if you have shared calendars opened in Outlook. You can try to unselect the shared calendar to check the result. It’s recommended to not open the shared calendar unless you want
    to view them.
    If you have any comments, welcome to post in the forum. Thank you.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Nope...
    I went through point by point by point, top to bottom, checking and verifying every single item as a possible cause for why my system (Outlook 2013 running on Windows 8.1 and connecting to Exchange 2010) insists on prompting me for my password every single
    time I start Outlook.  None of the solutions worked, my system still prompts me.  I don't even have to supply a password.  When the prompt dialog appears, I just cancel it.  Within a few seconds, the bottom Outlook status bar changes to
    "Need Password" with a key icon to the left.  Then I just click on that message and immediately Outlook connects to Exchange.
    The freaking software is BROKEN!  Period.

  • SAP R/3 -- Not getting prompted for password on Heterogeneous Sys. Copy

    Thank you in advance.  I am part of a project team that is testing the potential of moving from UNIX (AIX 5.3) to Linux (RHEL 4 or 5).  We are running SAP R/3 on IBM P570 with DB2 v9.1 and when we run this program:  Installation master sapinst
    We are not getting prompted for the user password but when we run the same cd on a different system we get prompted for the user's password.  Can anyone point me in the right direction on what is wrong?  If you need more info let me know.
    Thanks,
    Erik

    @ Sven & Markus
    Well I have checked all the logs and there are no errors.  What I have found out is that it successfully runs but there is 0 ouput, in essence it isn't exporting any data.
    Here it shows that it completed successfully but in the export directory there isn't data when there should be.
    INFO       2009-10-08 17:34:19.270 [sixxcstepexecute.cpp:544]
    The installation of component Execution of Service SAP ERP 6.0 Support Release 3 > Software Life-Cycle Options > System Copy
    > IBM DB2 for Linux, UNIX, and Windows > Source System Export > Central System > Based on AS ABAP > Database Instance Export has been completed successfully  has been completed successfully.
    See here:
    /dev/exportlv    119.25    119.23    1%       16     1% /export
    Thanks,
    Erik

  • Prompt for Filename Upon Printing as PDF Not Working

    I have an intermittent problem when printing Word documents as PDFs.  I am using Windows 7 Professional, Adobe Acrobat X Pro, and Word 2010.  This problem started occuring only very recently; previously I was able to print Word documents as PDFs without issue.  The current problem is that about half of the time that I attempt to print as Adobe PDF, I do not receive a prompt for the filename and location of my PDF document.  Instead, a tooltip bubble pops up in on my system tray with the Adobe symbol, telling me something to the effect of "your PDF has been created as k3r5pt.tmp."  The other half of the time I receive the normal prompt to save my file.  It does not appear to be specific to certain documents, as after this problem occurs I try again with the same document (after changing nothing) and it prints normally.
    I have checked my preferences by going to Devices and Printers->Adobe PDF->Printing Preferences->Adobe PDF Settings and choosing "Prompt for Adobe PDF filename" in the Adobe PDF Output Folder drop-down menu.  This has always been the setting and it still is.  I am not certain where these .tmp files are being sent to or why they are being created at all.  Any help you can provide would be appreciated so that I can print my PDFs successfully every time.

    Unfortunately updating the Distiller settings did not help.  PDFs are still printing to .tmp files periodically.  It isn't just from Word either; I've also noticed that it happens with PDFs as well.  For example, when viewing a 50+ page PDF document online I chose to print one of the pages from the middle as an Adobe PDF, and it notified me that my .tmp file was created.
    By the way, I haven't been changing printer properties from within an application; I change them from the Devices and Printers menu.
    I've been able to locate where the .tmp files are being sent:
    C:\Users\username\AppData\Local\Temp
    This is frustrating.  It seems to be happening despite all settings to the contrary. I just can't figure it out.  I'm reluctant to delete the printer and try to re-add it, because I don't have administrator priveleges on this computer (it's my work computer).  I wish I could give you guys more information.

  • Prompt for filename - not happening

    I am running Windows 7 & AA8. Every time I print to PDF the file is automatically saved to "My Documents" with the default file name. On my previous machine (Windows XP) I was prompted for the filename and save location. I cannot find the setting to make this possilbe again. When I open the printing preferences in windows - the setting " Adobe PDF Folder;" is blank or "LPT1" and I cannot change this. I click the "Browse" button but nothing happens....

    It sounds like the Adobe PDF printer is not being recognized. As for Win7 and AA8, I have only heard of one report that it works in the 64-bit version and there were no details. My guess is that you are running the 64-bit version. You might be successful if you selected 32-bit compatibility or whatever it is for the AcroTray.exe file. If that file is not active, then it would be reasonable that the port would be something different. If you check the printer port in the properties, is there an Adobe PDF port. The normal setting is Port: Documents\*.pdf with the Adobe PDF printer.
    If you can not set the port to Documents\*.pdf, you might just try setting the port to File. Then you should at least be able to print to file and then open the file in Distiller to get the PDF. An extra step, but should do the job.

  • Adcfgclone.pl dbTier is not prompting for ORACLE_HOME variable

    hi,
    adcfgclone.pl is not prompting for ORACLE_HOME variable.
    and erroring out with
    Checking the port pool 12
    done: Port Pool 12 is free
    Report file located at /appsutil/out/portpool.lst
    RC-00203: Unable to create/write to file /appsutil/out/portpool.lst.
    Complete port information available at /appsutil/out/portpool.lst
    RC-50004: Error occurred in CloneContext:
    AC-00005: No write permissions for creating the Context file - /appsutil/temp.xml
    Raised by oracle.apps.ad.context.AppsContext
    Check Clone Context logfile /mnt/ebs/PTCH/bin/db/tech_st/12.1.0/appsutil/clone/bin/CloneContext_0421032159.log for details.
    ERROR: Context creation not completed successfully.
    For additional details review the file /tmp/adcfgclone_6999.err if present.
    DOC refrred: How To Quick Solve This Post Clone Error : RC-50004, AC-00005: No Write Permissions For Creating The Context file - /tmp/temp.xml ? (Doc ID 842948.1)
    in the above DOC please let me know how to perform ANALYSIS part..
    Database version: 12.1.0.2.0
    Applications version: 12.1.3
    OS                         : OEL6.4
    please suggest
    Thanks
    Raghavendra

    are you able to create a file with os user which is running the rapidclone in /appsutil/temp.xml
    please check and update
    use touch command to create a file
    did you gave correct oracle home when prompted by rapidclone ?
    If you have set the right permissions at /tmp and the problem remains then check if at the post cloning steps at the dbTier, the scripts asks for the "Oracle Database Home"
    Target System RDBMS ORACLE_HOME Directory [/u01/clone/db/11.2.0/] :
    post the output of below command
    $ls -ltr ( in appsutil folder )
    AppsMasti
    sharing is Caring

  • XML style sheet error at Validate step in FDM for few locations

    Hi All,
    Users are facing the "XML page cannot be displayed - The style sheet doesnot contain a document element. The style sheet may be empty, or it may not be weel-formed XML document.." for very fre locations while validating the data.
    Please advise as it is most annoying thing for users.
    Thanks and Regards

    You will need to check a few things:
    a) Check that the Integration Option in the HFM Adapter "FDM WEB SERVER NAME" matches the value that the users are using to access FDM.
    http://<fdmwebservername>/HyperionFDM
    Make sure that the server host name is entered into this option.
    b) Check that the XML file type on the users workstation is configured to open with Internet Explorer and not the XML Editor.  You can do this by creating a text document named test.xml and right-clicking on it and choose "properties" and update the program to open the file to Internet Explorer and save.
    c) Make sure that the FDM Web Site is in the users trusted sites in the IE Browser
    d) Make sure that the "Automatically prompt for file downloads" and "Automatically Prompt for Active-X Controls" options are set to Enabled in the IE Settings.

Maybe you are looking for

  • Can I use Apple TV with my MacBook?

    Can I view my MacBook on my TV using Apple TV/AirPlay like I can with my iPad?

  • ABAP Proxy To XI

    Hi All, I hope i can get an answer to lingering problem that we have currently. We manage to configure to have XI --> ECC 5.0 (through Proxy / XI Adapter) We have another scenario where we are using ECC 5.0 through ABAP proxy to send messages to XI.

  • Mail database issue?

    My mail program is changing some of my emails into old emails from 4 years ago. Meaning, today I get an email from friend 'A'. It shows on my iphone and mobile me account as the original email from today from friend 'A'. On my mail program in Snow Le

  • Custom importer

    We have a custom importer plugin for premiere CS6. We dont save a custom file on disk, but we render the frames demanded by Premiere framework on the fly and return the data in imImportImageRec in imImportImage call. 1) The sequence when we create a

  • Accidentally deleted speakable items app (plugin) on my mac, Accidentally deleted speakable items app (plugin) on my mac

    Trying to fix something from an earlier problem and i deleted the Speakable Items App (~/System/Library/Speech/Recognizers/AppleSpeakableItems.SpeechRecognizer/Conte nts/PlugIns) Please help