Open documents within a folder without specifying filenames

Hi there,
I need to batch apply some script to all documents within a specified folder. Can I open each document one by one without specifying the filename?
So, instead of:
var myDocument = app.open(File(Folder.desktop + "/OpenDocument.indd"));
Something like:
var myDocument = app.open(File(Folder.desktop + "/" + documents[0]));
Obviously that doesn't work, but hopefully it illustrates what I am trying to achieve.
Thanks in advance,
rmsteel

Folder.getFiles will return a list of all files in that folder as an array

Similar Messages

  • Developers I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsb

    mule13470 
    Apr 3, 2014 11:12 AM 
    I tried simply renaming them however it just corrupts the files when I do it like that so I need the applescript to open the files in excel and the save them as .xlsx to test I only need it one folder but if it works I'd like to be able to do it for all documents with .xlsb extentions that are in a huge folder with subfolders that contain a mix of .pdf, .docx, .xlsx and .xlsb. Please Help.
    Applescript Editor, Mac OS X (10.6.8) 
    I have this question too (0) 
    Reply
    Categories: Using OS X MavericksTags: mac, help, finder, excel, applescript_editor
    Level 1 (0 points)
    mule13470
    Re: I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsbApr 3, 2014 11:19 AM (in response to mule13470) 
    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

  • I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsb

    I tried simply renaming them however it just corrupts the files when I do it like that so I need the applescript to open the files in excel and the save them as .xlsx to test I only need it one folder but if it works I'd like to be able to do it for all documents with .xlsb extentions that are in a huge folder with subfolders that contain a mix of .pdf, .docx, .xlsx and .xlsb. Please Help.

    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

  • OPen Documents within Scorm

    I have a project that is to be placed withiin Moodle and has links to external PDF and Word docs, but when the link is clicked it opens with the same window and you then cannot go back to the course.
    It works fine if i test in the browser from Captivate but not once i insert the Scorm into Moodle.
    Any suggesttions?

    This issue has come up several times in the last few months.
    First check in the object's Properties settings that you have set the link to open in its own new window, and not to open in the same window.
    The other thing to remember is that Moodle typically stores all course resources in a special folder that is not directly accessible from an HTTP link.  This folder resides "off the grid" as it were, so as to prevent users from just bookmarking the location of the content and linking directly to it without going through the links Moodle needs to track.  Moodle uses special pages to go fetch the content as and when required.  However the down side of this is that PDFs etc are not accessible if you package them into the same zip as the course SCORM.  So you need to upload the PDFs to a location on a web server where you can reach them with a fully qualified HTTP URL.

  • FF 3.6.6+ will only open documents within the browser

    When a website has a link that points to a document (any type, not just pdf), clicking the link results in the document being opened within FF as opposed to getting a dialog window asking "what to do".
    I've checked the options/applications and there are no settings in there for microsoft documents. There was one for adobe which was defaulted to something like "open within FF"
    == This happened ==
    Every time Firefox opened
    == Upgraded to 3.6.6

    Thanks but this doesn't address my problem.
    in the "managing file types" link the 3rd step is:
    "The Applications panel will display. Select the type of file for which you want to change the default action. (Note that multiple entries may exist for the same file extension, one for each MIME type.)"
    The problem is that none of the file types I'm having the problem with exist in this list. Lets use a specific example: microsoft word. Word is not in the application list so I am unable to make any changes to the "default" behavior.
    Additionally, if I left-click on the link then it immediately opens it embedded w/in the browser...no option to do otherwise.
    If I right-click & save as, it asks me where I want to save it and properly identifies it as a word document

  • I need to open files in a folder within a photoshop action

    I am writing an action (to be triggered by automator) to take three photos from a tethered camera and open, size, and crop them, and place them in specific locations on a template image to create two photo-booth strips side by side on a 4x6 print.  It works perfectly, but when I write the "open" command into the action, it referenced the files by name.  I need to find a way to have my action open the three files in a folder (the only three that will be there thanks to my automator action), but not reference them by name.  Is there any way of opening images in an action without referencing them by name?  Maybe some sort of open images in a folder type of thing?  Any ideas are very much appreciated.
    ---Dan

    I have played with the >>Toggle dialogue on/off<< field and manually opened the files from their folder, but the action has the file's location written into it.  I need it to open all files in a folder.  As part of my Automator action, I am moving my photos (taken in batches of 3) into a workflow system of folders so the photos from the camera save to a "from camera" folder, and then move to a "for photoshop" folder, and those are the images that open into the ps action and get put into the template.  The action saves the composite image to an archive folder, and deletes the image layers, and then the Automator action moves the originals to another archive folder.  There shouldn't be issues as long as the actions keep running and I can figure out how to open files form a folder without referencing the specific images in the folder.  Also please keep in mind that I am writing this as an action witihn Photoshop CS3, so basically clicking record, and letting the computer write the "code".  Did that help?

  • Create Directory Dialog box without specifying file name

    Hi all Programmers/Developers/JDC memebers
    I would like to know in java is there any method or class which helps to give directory dialog box without specifying filename.
    I mean to say if u have c,d,e drives and some directories under them
    c:\dir1
    c:\dir2
    d:\dir1
    d:\dir2
    i want a dialog box,which dispalys all the directories of the selected drive and upon choosing/selecting that directory i should be able to get all the files under them.

    Hi,
    You can write a file filter for a JFileChooser, in the following way,
    public class DirectoryFilter extends javax.swing.filechooser.FileFilter
    public boolean accept(java.io.File file)
    boolean filter = false;
    if(file.isDirectory())
    filter = true;
    return filter;
    public String getDescription()
    return "Directories only";
    //in your code
    JFileChooser fileChooser = new JFileChooser();
    fileChooser.setFileFilter(new DirectoryFilter());
    fileChooser.showOpenDialog() etc. etc..
    There's one small issue, by default JFileChooser has a filter called all files filter which you can select from the combo labled "files of type" . So, your file filter won't apply if this filter is chosen.
    To disable the all files filter
    use
    fileChooser.setAcceptAllFileFilterUsed(false);
    and only if you are on jdk1.3 or greater since this is a private method in the JFileChooser in 1.2.2 .
    Hope this helps,
    regards,
    Manish     

  • Can I erase older versions of mobile apps in the mobile applications folder within iTunes folder

    Can I erase older versions of mobile apps in the mobile applications folder within iTunes folder without distuebing their running in my iPhone and iPad? Thank you

    should be okay.
    in any event, if something happens, you can always redownload previous purchases:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store (the music feature currently works in the US only)

  • Office 2013 Will not open documents in a shared folder but 2007 will.

    Hi,
    Recently we are testing office 2013 and have noticed a problem. When office attempts to open an Excel or Word document that is stored on a shared drive on the file server it will not open it. When you double click on the document, either word or
    Excel, the appropriate Office app opens, but it opens on the start screen, i.e. the one with the templates displayed.
    There are no error messages displayed , and it appears that the office app opens twice, i.e you see the splash screen with the app name on it two times in quick succession, however you cannot find two instances of the app open.
    If you simply copy the document from the shared drive to the users desktop and then double click the file , the appropriate app opens and the file also opens without a problem.
    Also if you go to a client machine with office 2007 loaded on it then the document on the shared drive opens without a problem at all.
    The client machine with office 2013 is a Dell E7440 with windows 7 Pro 64bit.
    Thanks in advance

    I think its working now.
    Here is what I had to do.
    Delete Office from the machine once again, this time using the Microsoft tool to remove all remnants of the office software , then manually check the registry to see all the referenced keys had been removed.
    Reboot.
    Copy all the users data to another location on the same machine.
    Delete the users profile.
    Reboot.
    Reload office using the link Dell sent me.
    Reboot.
    Log in as a domain admin and check that office would open the documents on the file share and it did.
    Reboot.
    Log in as the user who’s profile I had deleted so that the profile was recreated.
    Attempt to open documents on the file share and it was successful.
    Move most of the users data back to the users folder so that his system looked the same as before.
    Reboot.
    Try again to use office applications and open documents from the file share and it continued to function correctly.
    Waited a day for the user to see how it went and it is still working now.
    I have no idea what could have been causing this problem or why doing what I did above fixed it.
    I hope the problem does not return.
    Now we can move on with more testing to see its suitability to our field service engineers, remote connections and connections to our customer systems will be checked next.

  • Sort order of files when opening a document within a program

    When opening Explorer, files are correctly sorted in alphabetical order.
    When opening a document (say within Word), if I search a folder then the files/folders are in a strange sort order - something like last used or modified. I don't know how this happened. I want them sorted alphabetically like in Explorer.
    What do I need to do? I'm fed up of having to sort every folder each time I open it within a program.

    > Is there a way to change the way DW sorts the dirs and
    files in the file list
    > window (other than reversing it)?
    have you expanded the Files Panel, made the sort by clicking
    on the
    headings, then collapsed it?
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • How to open documents programatically within current Workspace session

    I'm using Hyperion 9.3.1 across the board and I've built both Interactive Reporting and Web Analysis documents. Within those documents I have links/controls to open other Interactive Reporting documents.
    From Interactive Reporting, I have two options, create a Hyperlink shape, or a Command button control and use OpenURL. Both create new sessions of Workspace when they open the documents.
    From Web Analysis, you can not use Open Document to open Interactive Reporting (only works for other Web Analysis documents), so I have to use the service that opens a link, which again creates a new session in Workspace.
    I would like to have my reports all open within the same Workspace session and have the nice tabs in the bottom of Workspace appear that shows all the open documents (which is the default behavior when you double click documents in Workspace explorer).
    Any ideas?

    For Interactive Reporting, I found information on how to do this. Page 22 in ir_developer-vol1.pdf. Here's a snippet of the documentation:
    * New Window—A pop-up window is created every time the hyperlink is clicked. This option,
    which is the default, maps to the OpenURL OM method "_blank" target.
    * Current Window—If the execution application is Interactive Reporting Web Client or
    Workspace, the content replaces the Workspace content area (for example, excluding the
    surrounding browse application panes). In Interactive Reporting Studio, a pop-up window
    is displayed.
    * Top Window—If the execution application is Interactive Reporting Web Client or
    Workspace, the content replaces the top HTML window. This option maps to the OpenURL
    OM methods "_top" target.
    & Named Window—A named pop-up window is created. If a named window is currently
    displayed, the URL replaces the content of the current window. When this option is selected,
    the user can enter the new window name in the Target window text box that is displayed
    below the drop-down list. This option maps to the user-specified, target-name option of the
    OpenURL method.
    I'm pretty sure I tried all of these possible targets in the Hyperlink properties window, but perhaps I didn't. Oh well...I'll see if it works.

  • Opening Documents in Office Desktop client creates sharepoint links in network drive folder

    Hi Guys
    Having an issue where if a document is opened from sharepoint or through the explorer window in Office, a "folder" is created in the network drive folder which has a sharepoint link to the document. I realise this is probably a built in versioning
    feature of SharePoint but it's becoming a bit of a pain with the sheer volume of links being created. Any ideas how to turn off this feature or bug?
    Thanks//

    Hi,
    Could you capture the screenshot of the "folder"? Please specify the "folder" path in the screenshot.
    In my environment, whether I open the document from site UI or open library with Windows Explorer, then open document, there is no folder created.
    Please test the issue on another PC and check if it is related to client machine.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • I want to open a folder in a separate window by clicking on it.  For some reason when I click on a folder it just replaces the one I was just in.  I want them both to be open at the same time without having to go through several steps.

    I want to open a folder in a separate window by clicking on it.  For some reason when I click on a folder it just replaces the one I was just in.  I want them both to be open at the same time without having to go through several steps. Old apple operating systems made it easy to have several folders open at one time. 

    Eric, thanks that works but seems like an extra added step also to do it that way.  I've got to move and organize a ton of files and I'm looking for a easy way to get this done.  I could also open the folder into a separate tab and then drag the tab out so it becomes an open window but thats a lot of fussing around also with extra steps.  Not sure why these newer operating system seems more confusing and less user friendly than what they used to.  In the past I could just click on any folder and it would open in a separate window making it really easy to copy or move files from one place to the other just by simply dragging them from one window to the other.  Seems like I'm going through several extra steps now to do a simple task. 

  • Fold/UnFold XI 3.1 with Open Document

    Hi guys,
    I'm with the following issue,
    When I open my report(Web Intelligence) from infoview the report is opened with the fold functionality pressed. My problem is when I open the report from my dashboard (XCelsius) calling an openDocument URL. The fold/unfold functionality is display however the fold isn't pressed. I'd like that when the user opened the report the fold functionality would be pressed.
    if anyone could helpme I'll apreciate.
    Thanks and regards,
    Eduardo

    hi Eduardo,
    I tried to replicate the scenario but i am not facing this issue.
    I have followed below steps.
    1) Created a sample report using Island Resort Marketing Universe using Country, resort and revenue objects.
    2) Created a section on Country
    3) Clicked the Fold button
    4) Save the report.
    In Infoview, report is viewed and i am able to see the Folds at sections and Fold button as pressed.
    Now I go to Xcelsius and drag a URL button to canvas, and specify the below URL
    http://BOservername:8080/OpenDocument/opendoc/openDocument.jsp?sType=wid&iDocID=29879
    and export this to Infoview.
    When I viewed the Flash file in Infoview and clicked the URL button, i am able to see the Folds as well as Fold button is in clicked state.
    Please try the above steps and  let me know if you have any issues.
    Regards,
    Vamsee

  • Saving/Opening documents to SharePoint 2013 from within Office 2010 applications

    I was hoping that Office 2010 would work nicely together in terms of saving to and opening documents from SharePoint 2013. Alas, I was disappointed and somewhat surprised to see that opening/saving documents in SharePoint from within Office still
    involves copying, pasting and hacking the URL of the document library in the Save or Open dialogue box. I was fully expecting that Office 2010 would have display some sort of SharePoint navigation so you could view your sites and document libraries in a similar
    way to folders. A mature document management system this ain't!
    Anyone have any advice on how to improve the Open/Save to/from SharePoint experience in Office 2010? I'm open to the idea of Office add-ins whether third party or official Microsoft.
    Thanks in advance

    Thanks for the reply, but that's from within SharePoint, not Office?
    An example scenario: I create a new document or receive a document, I'm in the document, and I want to publish the document to a document library in SharePoint. At the moment I would have to save the document, load up SharePoint, navigate to the document
    library and then go through the upload process.
    I should really be able to, from within Word, select File - Save to SharePoint (say) and then be able to navigate to the document library I want to publish to. Really basic DMS stuff that I'm surprised isn't there!
    Similar thing to opening a document. I should be able to Open from SharePoint, navigate to the document library via some sort of navigation box, and open it.
    Thoughts appreciated.

Maybe you are looking for

  • .mp4 file not opening in safari

    Hi all. Got a problem. I have posted an mp4 file on my website and for some reason when i go to the link, it opens up with millions of numbers,text and crazy stuff. However on other browsers, it plays fine. Any thoughts? Thanks in advance, Matty

  • Loud static on left speaker when playing music

    Well I have officially tried everything in my power to fix this problem. it is probably not much to some, but nonetheless i am annoyed by this software. anytime i wish to play anything on iTunes 7, only LOUD static comes out of the left speaker of my

  • Download Adobe Flash Opens only in Chrome

    Please read carefully: The problem is that the download opens in Chrome automatically and I cannot find a way to open it in Firefox. It isn't a question of finding a way to download for all browsers, it is a problem with the fact that it opens in Chr

  • Which Language is known by only one programmer? and their names. If possible all details

    This is my table structure PNAME DOB DOJ GENDER PROF1 PROF2 SALARY ANAND 12-APR-66 21-APR-92 M PASCAL BASIC 3200 ALTAF 02-JUL-64 13-NOV-90 M CLIPPER COBOL 2800 JULIANA 31-JAN-60 21-APR-90 F COBOL DBASE 3000 KAMALA 30-OCT-68 02-JAN-92 F C DBASE 2900 M

  • Use Nexus Personal ("BankID") with Firefox without installing it

    I will describe how to utilize Nexus Personal as a plugin for Firefox without installing the package from AUR or running the installation script that comes with the program. And why would I do that? Firstly; the root partition on the system that I us