Directory listing from my OS X 10.5.8 server into a text file

Does anyone know how I can get a directory listing from my server, which I can put into an Excel Spreadsheet?
Thanks

Download the free TextWrangler and drag the enclosing folder into it. Alternatively, open the AppleScript Editor in the /Applications/Utilities/ folder, paste the following in:
do shell script "ls -AR " & quoted form of POSIX path of ((choose folder) as alias) & " >> ~/Desktop/inventory.txt"
and run it as is.
(104088)

Similar Messages

  • Is there any way to capture a list of the steps in editing a particular photo in a text file?

    I have just edited some photos for a friend who was short on time, and now she would like a list of the steps I took in editing.  Is there any way of listing those steps in a text file I could send her?

    Not so far as I know, into a text file. The History is not included in the metadata you can write out to XMP, so it cannot be extracted from there.  The History is embedded in a Catalog only.
    But it would be possible to Export as Catalog one sample image - or, a group of the images concerned. Your friend could open this very small catalog, and view the full History of what has been done to the selection of images it contains.
    Note: the History panel is only available in the Develop module, and you can only get into Develop when the image is not "offline". So your friend would need to get the right picture file(s) referenced into this small Catalog you supply. That can be done by re-browsing the location of the containing folder - so, it is not necessary for the images to be physically  living at the same path in both computers..
    More simply, by writing the final metadata out to the file, and sending the file along with its metadata, at least the finished adjustments can be looked at directly. You only need the Catalog with the History in order to see the sequence - and any changes of mind or explorations that have happened along the way.
    The sequence in which you set nondestructive adjustments does not technically matter; the Catalog method would mainly be of interest, to see an example of your working approach. The nice part about that, is that your friend could click through the History states and see how the image changes on screen - while also watching the sliders, tone curve etc moving around with each new step.

  • Grabbing numbers from an array of type double and outputting them into a text file

    In a program im creating i need to save some coordinates of a micropositioner i have into a text file,
    I have the coordinates saved into an array that has 6 digits of precision (6 places after the decimal point).
    I use the number to string conversion and wire that into the write to text file function in labview.  When i open the file
    the numbers that are only displayed are the ones to the left of the decimal point.  I know the number to decimal string function
    rounds the values so if i were to input 3.111111 it would only output the string "3" instead of "3.111111" . 
    So to get all the digits onto the file without rounding i multiplied the number by 10^6 but the decimal point will be lost at that point.
    Is there anyway i can convert numbers into strings without labview rounding to the nearest whole number also without having to multiply by 10^6 and without having to expect the user to know that the coordinates saved in a file are multiplied by an order of magnitude of a million ? 

    ed oh i guess i just missed that function on the pallete after i saw that the function went from number to hex, octal, etc. i assumed that the rest on that row would be some sort of conversion to a different base number, haha thanks.

  • Cannot "enable directory listing" from the wadm CLI

    With SJSWS 6.1 sp1 up to sp11, there was a documented bug that caused directory listing to work even though the ACL was:
    acl "default";
    authenticate (user, group) {
      prompt = "Sun ONE Web Server";
    allow (read, execute, info) user = "anyone";
    allow (list, write, delete) user = "all";With SJSWS 7.0, this bug was fixed. The default installed ACL is exactly the same from 6.1 to 7.0. e.g. the "list" right is given only to [all] authenticated user, and not everyone. So requesting a "GET /images/" will give you a 401 unauthorized, as should have happened in 6.1, which causes your browser to prompt you to login.
    By default, 7.0 webserver configs are created with directory listing enabled with "index-common". But it can also be disabled, directing the user to a defined static file on the web server disk. i.e.:
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="send-error" path="/path/on/disk/notFound.html"In either case, out of the box, neither enabling nor disabling directory listing matters because the default ACL denies directory listing in the prior case, and denies the "notFound.html" response in the later. Note "allow (list) user = all" requires authentication for the "list"privilege.
    To fix this, you change the ACL so the "list" privilege is in the first ACI, i.e., 'allow (read, execute, info, list) user = "anyone";'
    The problem is that even though the ACL file can be modified in the Admin Web GUI, it cannot be modified from the the wadm CLI.
    So, because of this, technically one cannot truly enable directory listing (wadm enable-directory-listing) using wadm. The best you can do is manually edit the existing ACL, or create a new ACL file and set that new file using wadm.
    I don't even see a way, using wadm, to dump new content into the ACL file. Without the GUI, you are stuck. And you cannot perform remote administration for this feature using wadm.
    If we admins are creating TCL scripts to automate creating and configuring webserver configs, this feature cannot be configured.
    I would like to know if I am wrong, and how I could resolve this using the wadm CLI alone.
    And if the default is going to remain that the "list" privilege requires authentication, this should be documented in the SJSWS7 documentation for enabling and disabling directory listing.

    pull-config does not work in this case because of two reasons:
    1. you must still manually edit the ACL file (can already do that on the admin server)
    2. and you must make that change on a node which has the configuration
    In my case, I want to remotely manage the configuration using wadm. But I do not want to log into one of the nodes in the server farm.
    And I want to avoid having to edit the ACL file manually if possible, or through the GUI which requires manual intelligent point-and-click efforts.
    Seems like my only bet is to:
    1. create the config via the wadm tcl shell
    2. then outside of the wadm command, execute some script that can perform a scp to the admin server, or a ssh for a local copy of a previously written ACL file - which requires a lot of extra setup to make that happen.
    3. then get back into wadm to execute the other tasks
    I want to avoid step #2.

  • Directory Listing from Web

    Hi All,
    I am trying to populate a menu with a list of PDF files from
    a particular folder. I've got this working perfectly for a local
    path using the FileXtra4 xtra, but I'm stumped with getting a
    folder from the web. I've tried the Buddy Web xtra, but it returns
    an empty list when I use:
    fileList = bwFileList("
    http://www.awebsite.com/stuff/",
    Maybe I could embed a Flash Movie and have Flash pass the
    list to Director?
    I'm using Director and Flash MX 2004
    Any help much appreciated
    Thanks guys,

    Hi,
    I'm not sure about Buddy Web xtra (I've not used it), but you
    have a couple of other options:
    1. Use the excellent free and for absolutely no sane reason
    depreciated MultiUSer Xtra to create a network connection with an
    ftp server and use standard ftp commands to get a directory
    listing. see
    http://www.lingoworkshop.com/Testzone/FTP_Client_Test.php
    2. Use getNetText to ask a server-script to return the list
    of files. This is probably the safest but is dependent on the
    server (example php script attached).

  • Directory List from XML

    I would outsource this section of a Flash site to someone who
    understands
    actionscript and xml.
    The section that needs to be created is a project title
    directory.
    The project title list or directory:
    1. needs to be created from an existing XML file.
    2. be displayed in Flash as 3 columns with a scroll when
    necessary. Each
    column lists all Proj_title's for that Category.
    3. Clicking on a Proj_title from the list would open up that
    project in the
    existing allprojects.fla.
    The All Projects page is already done and pulls its data from
    the same XML
    file.
    It displays scrolling images of products. When an image is
    clicked, a
    detailed section opens with other images and text all coming
    from the same
    xml file. This section is completed. Now with a Directory
    List, the same
    happens when clicking on a Proj_title from the list.
    The directory list is what needs to be done.
    The XML file contains: Image, Category, Proj_title,
    Thumbnail, Summary,
    Description, Picture1, Pic1Desc, Picture2, Pic2Desc,
    Picture3, Pic3Desc,
    Use, Builder, Builder etc.....
    The XML file used for the directory is the same used for the
    rest of this
    allprojects.fla..
    Please find link to see the xml file:
    www.filecondo.com/allimages.xml
    If you are interested in this freelance job please respond to
    this post.
    Thank you

    The IsGetDevice operation will get you all the devices including their extension numbers from a CME. You need to set up the router XML interface on the router as per this document: http://cisco.com/en/US/docs/voice_ip_comm/cucme/srnd/design/guide/managcme.html#wp1076023
    then follow the appropriate developer guide which you can get here: http://www.cisco.com/cgi-bin/dev_support/access_level/product_support (under voice gateway applications)
    You'll also find searching this forum for the topic useful as there are a few things the developer guide fails to mention (specifially that you need to urlencode the message before sending).

  • Retrieve file/directory listing from a URL

    I am building an applet to view images located on a given URL (not the same as the codebase URL...). The problem is how to see which directories and files that are located on the given URL? File.list() works fine as long as I'm the pictures are located on my own computer, but I would like to do something like:
    File f = new File(new URL("http://.../imagelibrary"));
    String [] x = f.list();
    Please help me out!
    You'll get credited for it - I promise!
    /Markus

    Hi,
    I make a try to help you. A applet has only a HttpConnection to the server. Typical over this connection you can receive a file. E.g., when you connect the http-server by a browser, you becomes a html-page, with a table or list from the directory,when it allowed. Over a HttpURLConnection you can receive this html-code by the following code-snippet:public class DownLoad {
         public static void main(String args[]) {
              try {
                   java.net.URL url = new java.net.URL("http://localhost:8080/../images/");
                   java.io.InputStream in = url.openStream();
                   int count = in.available();
                   byte content[] = new byte[count];
                   in.read(content, 0, count);
                   String contentAsString = new String(content, 0, count);
                   System.out.println(contentAsString);
              } catch (Exception e) {
                   e.printStackTrace();
    }Now you can show this in the applet directly or you parse the contentAsString and find the entry in the table/list.
    Hope thats help
    Roland

  • Writing information from a StringBuffer into a text file in KM

    Hello All,
    Is there a way to write content such as a text file into the KM.
    The only way I can see at this point is:
    1. create a resource
    2. transfer stringBuffer into an inputStream
    3. Update the resource with the inputStream
    This feels awkward and I have not tried it yet. Basically I want to write reports into a KM directory.
    Points awarded to helpful answers. Thanks!
    Cory

    createResource always takes InputStreams. Why is that a problem? Just use string.toBytes(encoding) and ByteArrayInputStream to obtain a stream for that.
    Just be sure that you're consistent in the character encodings you use when obtaining the byte array from the string (UTF-8 recommended) and when creating the Content object.
    Best regards, Julian

  • Would like emails from a particular sender to automatically get exported to a text file or appended to an existing text file on my hard drive

    Emails from a particular sender I would like to get appended to a single or to multiple csv or text files.
    I think I've read that Mozilla can use filters to get all emails from a particular sender put in a particular folder.
    That might be useful but does not get me all the way to goal.
    I've also read about 3rd party plugins that give you export options through additional menu options
    However, I need something that just automatically exports (without me having to be there and does not require any mouse commands) whenever an email from a particular sender shows up. And that exports to a csv or txt file.
    thanks for any time you spend on this question.
    Chris

    ok I answered my own question on this one.
    According to Filtaquilla online documentation:
    ''(Beginning in Filtaquilla version 1.3.0): By default, the message is saved with the default Thunderbird extension .eml The filter will use a different extension if you append to the file spec a | followed by the extension. So for example if the filespec is C:\temp\saveas\ for the default extension type, change this to C:\temp\saveas\|txt and the extension will be “txt”.''
    I was able to verify this works in my test.

  • Get information from an array saved into a text file

    I am trying to get information from an array saved as a text file to extract the information to build an string. This string will go out from the serial port to a device which will listen this message and it will answer the question. All the information sended sequencially it has to be obtained from that array. Every row contain one instruction and this has to be sended one after one.
    Could you tell me if is possible to make this driver? And if you have a similar driver, Where can I get it from?

    The VIs that I would suggest using are found in the String Function Pallet:
    Spreadsheet String To Array
    Array To Spreadsheet String
    The delimiter should be the termination character. These VIs will adapt to a string array.
    For the Spreadsheet String To Array wire an empty string array and use %s as the format. The delimiter should be the termination character of the text file, most likely a end of line (\r\n).
    For the Array To Spreadsheet String the delimiter should be the termination required for your serial device.
    Using a combination of these two VIs should provide you the functions required to make the driver.

  • Directory listing from a JAR file

    Hi,
    I want to know how i can get a list of files in a certain directory located inside a jar file.
    Thanks

    Programmatically, you need to parse the JAR with the help of java.util.zip.
    From the command prompt, you can do it with "jar -t archive.jar"

  • Listing directory (list directory.vi) performance

    I have a problem when using list directory.vi module to get list of files over the network. Directory contains shortcuts in to destination workstation's hard disk. Directory listing takes about 30 seconds to go and there are no other files, only those few shortcuts. When polling directory where there are no shortcuts, it works fine.
    I need to poll these directories because we are checking incoming new files.
    There is no difference in processing time when using pattern.
    Any ideas are welcome.

    Hi Hannu,
    The List Directory VI is slow primarily because it tries to resolve any shortcuts in the directory and make sure that they are valid. If there are several shortcuts, this operation will definitely take some time, especially if some of the shortcuts are broken. This issue has been documented and NI's R&D department is aware of the problem.
    The List Directory VI does have better performance in LabVIEW 7.1 as well as on a computer using a NTFS file system format.
    The previous post by Audrey Dmitriev suggests making calls to the Windows API functions. This is another workaround and you can use the LabVIEW Call Library Node VI to call a Windows DLL. The following article may be helpful for you:
    KnowledgeBase 1GRAN2U0. Where Can I Get Help Calling Windows API Functions from LabVIEW?
    Note that there is an excellent Developer Zone example program that is linked off that page as well.
    Good luck!
    Kileen C.
    Applications Engineer
    National Instruments

  • Populate dropDown or listBox with Directory Listing

    I need to populate a dropDown or listBox component with a directory listing from the Server.
    For example:
    \Import\XML_Files\*.xml
    Can someone point me in the right direction?
    Thanks

    Here is a hint
    File directory = new File(path);
    String[] files = directory.list();
    List fileList = new ArrayList();
    Populate the "fileList" with "files" (may need to create an object to get the file name)
    Ex
    class MyFileObject(){
    private String fileName;
    public getFileName(){
    return fileName;
    Create a object list data provider with the File List above. Now bind this data provider to the drop down list
    See my blog on how to use the Object List Data Provider
    http://blogs.sun.com/roller/page/winston?entry=objectlistdp_sample_project
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Best way to view Text files from Mac on iPhone 4?

    What is the Best way to view Text files (loaded) from my Mac onto my iPhone 4?
    Will any of the "readers" (e.g. Kindle, Kobo) allow me to put my own text files onto my iPhone and read them easily?
    Thanks

    I actually purchased GoodReader because it is easy to transfer files without iTunes.  I dislike the file sharing through iTunes.   You can use a Mac or PC.  Once I was in the app I clicked the "Wi-Fi" symbol which brings me to "WiFi-transfer."  It will show this --
    "WiFi status: ON
    Use one of the following addresses exactly as you see them
    1. IP-address: http://192.168.0.98:8080 <-- Local LAN address the iPhone is broadcasting on.
    2. Bonjour-address http://Myname-iPhone.local:8080"
    All you have to do is type one of those addresses into your browser. (Safari, etc.)
    It will take you to a page that has iPhone Connection and a list of options.  You can either create a new directory within the application or use an existing one to upload a text file.  It's rather simple, you just select "Choose a file to upload" > Select your file > Press upload > Start the app and see your text/pdf/whatever file.
    You can also connect to a server to download a text file, browse the web, or enter a url.  I see it also has an ICloud folder which I'm not sure if it integrates with Apple's iCloud or not, I think it does.  I'm not affliated with the app and I'm not saying you have to buy it, I'm just a happy user.
    If you don't want to buy this app let me know I'll keep looking for a free or cheaper one for you if you want.

  • Trying to load a javascript link from text file into a dynamic textfile

    Can anyone help me with this problem? Im trying to load in a
    newsfeed from freshcontent.net into my text field. If i put this
    javascript link on an html page, the page shows correctly, which is
    im supposed to get 3 dynamic links with news content headlines.
    Please view the link to see what i mean:
    http://www.freshcontent.net/directory/real-estate/real_estate.html
    Now, i cannot get this same type of display behavior in my
    text field if i just paste into my text file the javascript link
    thats supposed to bring up the 3 headlines. It is my understanding,
    that flash cannot do this without some sort of specific
    actionscripting, that involves asfusion, and/or externalInterface.
    Im not sure exactly how to go about setting this up to make this
    work. My current code looks like this:
    If anybody could tell me where im going wrong and what i
    should change in order to get the desired result im going for, Id
    very much appreciate it. Thanks

    well sorry there fanmap - but I don't think you're going to
    be able to get this to work. here's why: the link points to a php
    file - which gathers dynamic info from a DB - the return from the
    php is generating a string that is based on the DOM and
    'constructs' a javascript method that in turn writes to the html
    document. although we can embed html into a textField in Flash
    there are a limited number of supported html tags - and JS methods
    will not operate internally. in addition, (i'm not certain someone
    correct this if i'm off) there's no way to 'change' the output of
    the php call, therefore you will not be able to read the return
    because it is designed to use the DOM and write solely to the
    current document. Even if you were to access the JS method from the
    swf file (which one can) it will still only write the content of
    the php return to the html document - and the output is not
    compatible with the textField class.

Maybe you are looking for