Setup Document Preferences and save file to a certain location

I am wanting to have a javascript button on my toolbar that will setup the following document properties....
Embed page thumbnails
Navigation tab: Pages Panel and Page
Page Layout: Single Page
Magnification: Fit Page
Then save the file in the following format
file.name(substring 0, 4) + "_PUB"
Save the file to the following location on my computer
T:\ Checking \ _PUB\
Would appreciate some one helping me out with this!
Thanks in advance!
Windows 7 64 bit....
Acrobat 8 Pro
Acrobat 10 Pro

OK so thank you for the direction guys! Here is what I ended up with.....
In the following folder location:
C:\Users\wolfecj\AppData\Roaming\Adobe\Acrobat\8.0\JavaScripts
I saved a file named:
PUB and SIS file save.js
Here is the code in that file:
function savePUBAndSIS() {
app.beginPriv();
if(this.documentFileName.substring(8, 9) != "_"){
  this.saveAs("T:/Authors/Corey Wolfe/" + this.documentFileName.substring(0, 11) +'_PUB.pdf');
  this.saveAs("T:/Authors/Corey Wolfe/" + this.documentFileName.substring(0, 11) +'_SIS.pdf');
else{
console.println("T:/Authors/Corey Wolfe/" + this.documentFileName.substring(0, 8) +'-00_PUB.pdf');
console.println("T:/Authors/Corey Wolfe/" + this.documentFileName.substring(0, 8) +'-00_SIS.pdf');
app.endPriv();
Then in the following folder location:
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\Javascripts
I saved a file named:
trustedSave.js
Here is the code in that file:
app.addMenuItem( {
cName: "trustedSave",
cUser: "Save PUB and SIS", cParent: "Tools",
cExec: "savePUBAndSIS();", nPos: 0
Now to execute my trusted function I go to the Tools menu and click on Save PUB and SIS
Now I just need to figure out how to save my PUB file as a standard quality and my SIS file as a optimized for web view!
Hope this helps someone out!

Similar Messages

  • How to open and save file like the Notepad Demo do?

    I am a newer to Java Web Start. I found that in the Notepad Demo, when user try to open or save file, a message box appear and give the user some security suggestions.
    In my application, I used a JFileChooser and set the <security> element to <j2ee-application-client-permissions/> in the jnlp file. But the application will thow an exception:
    access denied (java.io.FilePermission C:\Documents and Settings\Administrator\desktop\Java Web Start.lnk read)
    Can someone tell me how to solve this problem. By the way, where can I find the source of the Notepad Demo. I want my application to open and save file just like the Notepad Demo do.

    The Notpad demo uses the JNLP api to read and write files. The api doc can be found at:
    http://java.sun.com/products/javawebstart/docs/javadoc/index.html
    Although the Notpad demo source is not available, there is other sample code available at:
    http://developer.java.sun.com/developer/releases/javawebstart/
    Included here is the webpad demo, which uses the FileOpenService and
    FileSaveService API's.

  • Popup with open and save file option

    Hi,
    I have created a button on my page name as "Export File" and created a process and called on "EXPORT FILE" button. I am using utl file in this procedure and i want to download this file and file will be .ics file using for calendar.
    My page process code is
    begin
    pro_create_ical(:P6_START_DATE,:P6_END_DATE);
    end;when i click on export file button it should raise a popup with open and save file option.
    How i can do this?
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 25, 2013 1:59 AM
    Edited by: Vedant on Jan 25, 2013 2:00 AM
    Edited by: Vedant on Jan 25, 2013 3:49 AM

    Shiv,
    Have you installed any new Software/Spyware/Virus Scanner etc.Check it out.It might have caused the issue for last 5 days.
    This issue is fixed in Latest Support Package Versions.
    Which Version of Support Package you are using?
    If EP6 <SP19 you will face this issue.
    Just upgrade it to EP6, Support Pack-19,this will be resolved.
    Upgrade of Support Pack wont take much time.you can get the document under http://service.sap.com/instguides
    Hope it helps
    Regards,
    Karthick Eswaran
    *Reward Points for helpful answers.

  • How to incorporate File name and timestamp automatically into select and save file dialog box?

    Hello,
    i am trying to incorporate the file name which is inputed by the user along with the timestamp into the selected and save file dialog box. Can you help?
    Thanks
    Solved!
    Go to Solution.

    You can pass a default file name to the 'File Dialog' Express VI.
    Use the 'selected path' output to open the file.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness
    Attachments:
    FileDialog.vi ‏21 KB

  • [svn:fx-trunk] 7661: Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.

    Revision: 7661
    Author:   [email protected]
    Date:     2009-06-08 17:50:12 -0700 (Mon, 08 Jun 2009)
    Log Message:
    Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.
    QA Notes:
    Doc Notes:
    Bugs: SDK-21636
    Reviewers: Corey
    Ticket Links:
        http://bugs.adobe.com/jira/browse/iso-8859
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/SDK-21636
    Modified Paths:
        flex/sdk/trunk/templates/swfobject/index.template.html

    same problem here with wl8.1
    have you sold it and if yes, how?
    thanks

  • How can I add links to open xml and csv files stored in another location? Please advice how to place links in my frame maker document?

    Hi,
    I would like to know as to how can I add links to open xml and csv files stored in another location? Please advice how to place links in my frame maker document?
    Kindly advice.
    Thanks
    Priya

    Special > Hypertext > Command "open document" will do its best to open the target document inside FrameMaker, which may not be much help; Special > Hypertext > Command "message …" will use the application you specify. The user guide for 7.0 says this about absolute links, and I don't think anything has changed since:
    For example, to start PaintBrush and open the Ship.pcx file on drive C you would use the command message system pbrush.exe C:/Ship.pcx
    I've not often used a relative link, and not recently: the same source says
    folder levels are separated by a slash / even in Windows and Mac
    [relative links] FrameMaker searches for a relative pathname beginning in the folder that contains the current document
    [absolute links] FrameMaker searches for an absolute pathname beginning at the top of the file system. In Windows, the absolute pathname begins with the drive specifier, a colon and a slash.

  • I have a pdf file which contains text if i copy all text and paste them into notpad and save file as .txt Is it change the ascii value of text ?

    I have a pdf file which contains text if i copy all text and paste them into notpad and save file as .txt Is it change the ascii value of text ?

    How to know character's encoding is ASCII?

  • Application preference and plist files

    Does anyone know how to access application and plist files so that I can delete them. I have a 3rd party application (Popcorn) that I need to delete from my Macbook Pro. When using Tiger, it was as simple as doing a file-popcorn, and it would list all the file extensions. Leopard only lets you delete the application, leaving preferences and plist files hidden. I found this out after I deleted the popcorn application. My computer shows no files for Popcorn when I do a search, but after I reloaded the application, it fired right up and kept all my personal info etc. Anyone have a solution?

    Hello Bad Kaaarma and welcome to discussions,
    Hard Drive > Users > Home Folder > Library > Preferences.
    Hope that helps some.
    Regards
    Ian

  • Any apps that download and save files to itouch?

    Are there any apps that have the ability to DL and save files such as .PDF's directly to my itouch over the wifi for use offline, and without any syncing with my pc? It seems that any apps that i see require syncing with my pc either directly or remotely.
    All I'd like to do is save a file while I'm surfing and open it offline. Free apps would be preferred.

    FileSync: $5, requires you to host your files on an FTP site
    Files Lite: $0
    Briefcase Lite: $0
    Each offers support and more functional paid versions.

  • Deleting Orphaned Preferences and Other Files

    Under Classic there were a couple of apps that would seek out and list orphaned preferences and other files from applications that had been deleted from the computer. There are some UNINSTALLER apps for Leopard, but I can't seem to find any that will list orphaned files for deletion. What I want to do is get rid of orphaned files from apps that I probably hand-deleted some time ago.
    Anyone know of a solution?

    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash. Applications may create preference files that are stored in the /Home/Library/Preferences/ folder. Although they do nothing once you delete the associated application, they do take up some disk space. If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application. In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder. You can also check there to see if the application has created a folder. You can also delete the folder that's in the Applications Support folder. Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item. Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder. Log In Items are set in the Accounts preferences. Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab. Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term. Unfortunately Spotlight will not look in certain folders by default. You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead. Download Easy Find at VersionTracker or MacUpdate.
    Some applications install a receipt in the /Library/Receipts/ folder. Usually with the same name as the program or the developer. The item generally has a ".pkg" extension. Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are also several shareware utilities that can uninstall applications:
    AppZapper
    CleanApp
    Yank
    SuperPop
    Uninstaller
    Spring Cleaning
    Look for them at VersionTracker or MacUpdate.
    For more information visit The XLab FAQs and read the FAQ on removing software.
    If you have uninstaller software already installed then it should, typically, alert you to associated files that you may want to delete. But they will not work for applications you have deleted prior to installing the uninstaller software.

  • I purchased a song on itunes and its file can not be located. its in my library but i cant play the song

    I purchased a song on itunes and its file can not be located. Its listed in my library but can not play. A message pops up that read. Can not locate file then it gives me an option to locate. When I click locate it opens a box. Dont know what to do after that

    Hi TKCDM1!
    You should try to get this purchase onto your iOS device by using the suggestions in the following article:
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • HOW TO OPEN AND SAVE FILES TO/FOR MS-WORD 2007 .docx format

    MS-Office 2007 will open .docx files as well as .doc files. Apple's Pages '08 can OPEN MS Word 2007 documents with the new file format ".docx". Pages '08 can not save as ".docx" files, just ".doc" files, but since MS Office 2007 can open these ".doc" without a problem, you should be covered.
    Here is how.
    To open: Just double click the file and Apple's Pages '08 will import the file and open it for you to use and modify.
    To save and use at your work or school's Windows MS Word 2007: When you are done and ready to save the file, go to FILE in the menu bar in Pages '08 and select EXPORT. Then pick the icon DOC WORD and click NEXT. Then in the SAVE AS box, give it a name and tell where you want to save your file to. Click EXPORT. Export is like Save, as it will now save the file where you told it to save it to. Remember you can use the same name, or give it a new name. Thats it. EASY.
    It will save the file in a Windows Word format of ".doc" that MS Word 2007 can open and use.
    Hope this helps people.
    -Apple //GS

    Why yes. How did you know that I saw the way, the truth and the light?
    I just had so many people ask me how to do this, that I thought I might share it with as many people as I could and help the masses To bad that Apple just did not have it as a simple "Save As:" Maybe in the next update.
    -Apple //GS

  • How does CS2 Photoshop use OSX to retrieve and save files?

    CS2 Photoshop (PS) no longer will open or save files; instead it goes into limbo. I can import an image from the clipboard and edit it. It will save it, but I can't get PS back to working after that.
    This began suddenly about 3 days ago. Since then I have cleared the PRAM, run TechTool and optimized the drive, removed and reinstalled CS2, trashed relevant preference files (I think I got them all)—all to no avail. Interestingly it runs fine on another account on the same computer!
    I would like to know what files other than the obvious preference files are used as interfaces between PS and OS 10.3.9, and hear any other suggestions that you might offer.
    No other application seems to have any problem with filing, including the other CS suite members.
    Thanks!

    Since it's only your account that's affected, then it must be something in your account.
    Quit Photoshop. In the Preferences folder of your account, delete the entire folder, "Adobe Photoshop CS2 Settings". You will of course need to reset all of you preferences in Photoshop. To avoid that if it's not the preferences that are the problem, just move the settings folder to the desktop. Then you can just move it back.

  • Download and save files or Office files!

    How can I download and save an EXE file or Office files i.e. DOC, XLS or PPT files to iPhone 5 and then transfer them to Computer/Laptop?
    Thanks
    Shahzad Zameer

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See also "Disable virus scanning in Firefox preferences - Windows"
    * http://kb.mozillazine.org/Unable_to_save_or_download_files

  • How to Open and Save files

    I have a problem to open and save the files.here is my code. can anyone help me to open the files.
    public void actionPerformed(ActionEvent e) {
    if ("open".equals(e.getActionCommand())) {
    FileDialog fdopen=new FileDialog(this, "Load File", FileDialog.LOAD);
    fdopen.show();
    Thanks for ur time

    Hi fbnmir or who ever can answer my question,
    My problem is similar to the code you wrote. I'm trying to make (or rather complete a half done) editor for text files. For opening and saving files I have so far:
    public void actionPerformed(ActionEvent ae){
    FileDialog filedialog;
    final SearchDialog searchDialog;
    String arg = (String)ae.getActionCommand();
    // the Open ... case
    if(arg.equals(Editor.fileLabels[0])){ 
    if(Editor.VERBOSE)
    System.err.println(Editor.fileLabels[0] +
                        " has been selected");
    filedialog = new FileDialog(editor, "Open File Dialog", FileDialog.LOAD);
    filedialog.show();
    if(Editor.VERBOSE){  
    System.err.println("Exited filedialog.setVisible(true);");
    System.err.println("Open file = " + filedialog.getFile());
    System.err.println("Open directory = " + filedialog.getDirectory());
    //the Save ... case
    if(arg.equals(Editor.fileLabels[1])){ 
    if(Editor.VERBOSE)
    System.err.println(Editor.fileLabels[1] + " has been selected");
    filedialog = new FileDialog(editor, "Save File Dialog", FileDialog.SAVE);
    filedialog.show();
    if(Editor.VERBOSE){ 
    System.err.println("Exited filedialog.setVisible(true);");
    System.err.println("Save file = " + filedialog.getFile());
    System.err.println("Save directory = " + filedialog.getDirectory());
    These are two components of a MenuHandler class. The problem with this code is that in the text editor window, even if the Open button is pressed the file I want to open isn't displayed. Although the System.err (I think that's what it is called) says:
    Open ... has been selected
    Exited filedialog.setVisible(true);
    Open file = tutorial_01.rtf
    Open directory = C:\dhruba\epgy_2006\tutorial\
    Save ... has been selected
    Exited filedialog.setVisible(true);
    Save file = test.txt
    Save directory = C:\dhruba\epgy_2006\tutorial\
    How can I actually display the file I want to open, or save some text I've written?
    I would appreciate any help, thanks.

Maybe you are looking for

  • Excise Invoice at Depot using J1IG.

    Dear Gurus,                I am doing Excise invoice at Depot  using T.COde- J1IG for Material documents. I created a Stock Transport Order,created Delivery using VL10D and done PGI.I captured Excise using J1In and Cretaed BIlling Document. I have do

  • Need to write ABAP Routine at infopackage Selection Options

    Hi All, I need to write ABAP Routine at Info Package Selection Options. Requiremnet i need to bring  some Sales Document Types (Sales Orders Types) only from R/3. Ex I need OrderTypes ZQT,ZSIV etc Can any body help to resolve this. Regards, P.C.V.

  • Auto-transfer of Non-Moving items

    Hi, Is it possible to Auto-transfer of Non-Moving items to one location from another location, once the material is not consumed for more than 3 months. Regards.

  • How to Override Trigger Hierarchy at runtime

    I want to override the trigger executio Hierarchy at runtime. I have a When-Validate-Item at Item level, Block level and Form level based, on certain condition i want to dynamically change the hierarchy from item level to Block level or Form level so

  • Using Automator for to do reminders?

    Hello, I need to create an automator flow for ical that will, when I enter a date, create a series of to do tasks and alarms for those tasks over set periods. Example. I need to set deadline dates from Monday 5/16/11; need the workflow to take that d