Get file size value for export to .txt

I have created a script to export metadata using the XMP Script Library.  I am able to get all the properties I need except one: image file size (not dimensions, but the size of the file itself in MB).  File size is not included in any XMP namespaces and it isn't in any TIFF tags as far as I can tell.
Getting the file name is very straightforward: exportFile.write (thumb.name), but I can't find any method to get the file size.
Any ideas would be a big help.
Thanks in advance,
Greg Reser

var sels = app.document.selections;
alert(sels[0].spec.length);
This will get you the file size in bytes, then you can divide to get Mbytes.

Similar Messages

  • File size limit for webdav upload

    Dear Experts,
    we set up what we thought to be a restriction of the file size allowed for upload. We did this in the portal via
    System administration --> system configuration --> Knowledge Management --> Protocols --> WebDav --> Max WebDAV request size: 15728640 bytes.
    We would have expected that to not allow us uploading any files larger than 15 MB. Turns out we were wrong and it does not work. Here is a http-trace of an upload of a 21 MB file.
    Note the content length in the outbound message is 21832627.
    ========= Outbound Message =========
    PUT /irj/go/km/docs/documents/LSO/WBT/Academy_test_area/upload/secondUpload/SCORM%5B1%5D.2004.3ED.DocSuite.zip/SCORM%5B1%5D.2004.3ED.DocSuite.zip HTTP/1.1
    Host: ****hostname****:443
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: UCI DAV Explorer/0.91 RPT-HTTPClient/0.3-3E
    Translate: f
    Cookie: j_authscheme=basicauthentication; saplb_*=(J2EE405983900)405983952; JSESSIONID=(J2EE405983900)ID1262004252DB00846306331792142983End
    Cookie2: $Version="1"
    Authorization: Basic NDkwNjIyNzE6TGVybnRlNzg=
    Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress
    Content-type: application/zip
    Content-length: 21832627
    **** Lots of Content ****
    * 21 MB of bits and bytes
    **** / Lots of Content
    ========= Inbound Message =========
    HTTP/1.1 201 Created
    Date: Wed, 19 Aug 2009 15:39:07 GMT
    Server: SAP J2EE Engine/7.01
    Content-Type: text/html; charset=UTF-8
    Cache-Control: no-cache
    Vary: accept-encoding,accept-language,cookie,translate
    ETag: "1589137901012"
    Last-Modified: Wed, 19 Aug 2009 15:39:15 GMT
    Content-Length: 0
    Via: 1.1 ****hostname****:443
    Would anyone know any other way of preventing the upload of large files via a webDAV client?
    Thank you very much.
    Regards
    Michael

    Hi Michael,
    This cannot be possible in portal but you can upload the max size file through portal drive or webdev . Through portal drive you can upload 50mb or any format file size you can upload through portal but portal you cannot upload you can get the message of file uploading failure or connectivity issues like these messgae appears at every interval so go through the portal drive or webdev.
    But best option for uploading huge file size is Portal drive. This will helpful for you.
    Regards
    RS

  • How to get item field values for old versions?

    I need to be able to query old field values from previous versions of items in a SharePoint list. I can't execute code on the server (it needs to work with SharePoint Online/O365 for a start).
    So far the ONLY API I've that lets me do this is the lists.asmx GetVersionCollection SOAP call.
    This lets me specify a single field name and returns an XML structure with the values for the various versions, along with the modification time and who made the change - but NO reliable way of actually identifying *which* version (i.e. an ID or label). That
    is, if I know I need to fetch the Title value from version 512 ("1.0") of item 1 in list "Documents", I don't see how to reliably parse the results to determine which entry is version 512. While they may be returned in order, in many cases
    the entries are actually missing when there was no field value present (or perhaps when the field hadn't been created yet). I've tried comparing the Modified date to the Created date of the corresponding FileVersion item (which I can get via CSOM or REST),
    and while it works some of the time, it's not reliable. I've also looked at the output from the lists.asmx GetVersion API but I don't see how that's useful either, as the Created property for all versions always seems to be just the date the file was originally
    created.
    It does seem odd to me that there's not a neat way of doing this - if I need to return information for several fields but just for a single version, I have to make a whole lot of requests that return far more info than I need, and then I need to figure out
    how to parse the returned text in the case of, say, multiple-value taxonomy fields etc.
    Anyone tried doing anything similar here?
    Thanks
    Dylan

    try these links:
    https://support.office.microsoft.com/en-us/article/Track-and-view-version-information-for-SharePoint-list-items-2d69d936-fb0b-4c84-830e-11708e6ec317?CorrelationId=f87cf6ea-8cbf-446a-a4a0-e2c3a86b3425&ui=en-US&rs=en-US&ad=US
    https://social.technet.microsoft.com/Forums/en-US/e48ff216-7ed1-4b20-9f21-d496b1583eea/how-to-get-item-field-values-for-old-versions?forum=sharepointdevelopment
    http://sharepoint.stackexchange.com/questions/20019/get-meta-data-from-a-previous-version-of-a-document-through-webservice-in-moss-2
    http://sharepoint.stackexchange.com/questions/121594/getting-information-from-previous-versions-of-a-sp-list-using-csom
    Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing

  • Knowing File Size Prior to Exporting

    With the advent of youtube etc which limits file size to 100mb is there a way to calculate the file size prior to export?
    Even better is there any way, maybe a plug in that you can aim for a specific file size, say 99.9mb and the codec would meet that target size keeping the VDO at the best quality possible within those parameters???
    Thanks,

    Sounds like an interesting project for one of the shareware companies.......anyone??

  • HT4863 How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    You can't change it, and I suspect few email providers would allow a file that big.  Consider uploading it to a service like Dropbox, then email the link allowing the recipient to download it.

  • How to get the purchase value for a purticular price.

    Hi guru's,
    I want to get the purchase value for some materials, in a particular plant and in a particular month. How can I get this data.
    waiting for replies
    thanks
    tuljasingh.

    Hi,
    Refer report ME1P - PO Price History.
    Else Use Reports;
    ME2N - PO List by Document No
    ME2M - PO List by Materials
    ME2L - PO List by Vendors
    ME80FN - General Analysis of Purchase Orders

  • How to get Privacy Policy value for each userprofile in sharepoint 2010?

    In userprofile application, we have defined Privacy Policy of mobilephone feild as optional, so every user has option to choose visibility scope of this property to "Everyone/My Manager/my colegues/Only Me" .
    Now I am trying to get mobilephone value and their selected visibility option for each user.
    I am able to get mobilephone value but I could not get "what each user has chosen as their visibility scope"?

    Hi,
    According to your post, my understanding is that you want to get Privacy Policy value for each userprofile in sharepoint 2010.
    You need to use RunWithElevatedPrivileges method to impersonate user.
    To get the get mobilephone policy, you can use user["CellPhone "].Privacy.
    For more information, you can refer to:
    c# - Getting property privacy with Sharepoint 2010
    How to Programmatically Impersonate Users in SharePoint
    Managing Sharepoint 2010 Profiles Programmatically
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Files size limit for vimeo upload

    Hi,
    There is a warning sign that says ''publishing movies bigger than 5 GB may fail''. Why is that ? I have a vimeo pro account (I can dowload up to 20 GB per week. Does vimeo have file size limits for uploads ?

    hello, I did some research on this question and found this:
    "Vimeo does not have a maximum file size for uploads, however, there is a maximum of 500MB of uploading per week, making the maximum file size effectively 500MB. That's with a free account; if you pay to join Vimeo Plus the maximum weekly upload limit raises to 5GB"
    So, maybe you can try to convert your video to another format in small file size? Or maybe you can trim video to make it smaller.  If you want to try these suggested methods, this software can help you out: https://itunes.apple.com/us/app/video-mate/id592736614?ls=1&mt=12

  • How to get File type icon for files store on Amazons3

    Hi,
    i want to know about how to get file type icons for files that we store on Amazons3.i am a devloper ,i want to make gui for accessing amazons3.
    so ,i want to know about how to get file type icons for files that we store on Amazons3.
    thanx in advance.

    hi,
    have u heard amazon simple storage service,that provides storage space for
    storing files, i am a devloper,i want to know the files that we store on amazon,how we can get file type icon for that files.
    i want to sample code in java for this.
    thanx in advance.

  • My mac says that it has 40 gb of movies on it but when i finder search for file size, and for file type it gives me no videos

    My mac says that it has 40 gb of movies on it but when i finder search for file size, and for file type it gives me no videos or movies. I have called apple 3 times and each time they do the same thing and then do something that takes awhile to finish so we hang up and then it never works.
    Please Help

    each time they do the same thing
    And what thing might that be?

  • Is there a file size limit for images in keynote on a mac?

    Is there a file size limit for images in keynote on a mac?

    If you right click on the file (navigate to it using finder, or if it is in iCloud you should open keynote, File -> Open and you should see a list of your iCloud keynotes) then press command+i, you'll pull up the info tag which will tell you the file size.
    Keynote also has an option to Reduce File Size  (File -> Reduce Files Size) but I do not recommend it at all because it will severely degrade the quality of your pictures. 
    It's also possible to reduce an individual image's memory size in your keynote by right clicking it and selecting Reduce Image File Size).  This is more time-consuming but allows you to see if the degraded photo quality is still good enough, and you can always undo it.

  • Why am I getting very high values for the very low frequency region of a random signal?

    I am tyring to produce a power spectrum graph for a Tachogram data, related to Heart Rate Variability Analysis. This data can be thought to be as a random signal, but has a frequency spectrum range of 0 - 1HZ.
    The problem that I am facing is, I am getting very high values for very low frequency region, closer to DC value. Even the DC value is really high, in the range 10^8. It is suppose to be a low number. Any suggestions would be appreciated.
    Thanks.

    Here is what my work is all about. I am trying to develop a software for Heart Rate Variability analysis. I am not sure if you are aware of heart beat waveforms, they are bunch spikes, occuring at irregular intervals. We have to do analysis on this waveform. How ? First we have to create a plot called Tachogram. This is done by, for example, let's name the first spike R1, the second one R2, and the third one R3, and so on. This is how the co-ordinate points are created. (R1, R2-R1), (R2, R3-R2), and so on...
    Here R1 is the time instant at which the spike R1 occurs, and R2-R1 is the time difference between these peak occurences. So, if we plot these values, then it gives us one like what you saw on your time domain plot. What we have to do with this signal is, we have to apply FFT technique to produce its power spectrum for analysis. Generally the frequency range of the spectrum goes from 0 - 0.5 Hz. They part this range into VLF, LF, and HF, and analyze how much power is distributed in these regions. The distribution would tell you if you were stressed out,or have worked out, things like that. Normally, you can view spikes around LF, HF region. If you had viewed the power spectrum for the data that I sent, then that's what it pretty much looks like. I think I have said a lot about it now. Hope you get it.
    We were talking about the "other component", I can't really see where it lies, must be in the 60-80 sec. range in the graph. If you look at the spectrum, I am getting a huge value around 0.0033 Hz, how do I minimize or remove this ?
    Also, I am using Unevenly Spaced Signal Spectrum.vi, I am not sure what excactly is the unit for the Power Spectrum output. Technical Papers denote, Periodogram algorithm used by this VI, gives Power Spectral Density ? If that's right, then the unit is V^2/HZ.
    Please advise.
    Again, I should thank you for your time and effort.
    I have to meet a deadline this week in finishing this project, and your help is immense to me at this point.
    Thanks & Best Regards,

  • How do you get to the options for export settings with the new quicktime?

    I'm having trouble with the new quicktime pro. I'm trying to export a video with specific settings when exporting. It seems that in this version of quicktime you export and the only options i get is how to format : for ipad/pod/phone or 480p which is not what I want I need to change the settings to make my video 480x360 and fast start for web. can someone help

    How do you get to the options for export settings with the new quicktime?
    You don't Use QT 7 "Pro", GarageBand, a video editor app, or a third-party app like MPEG Streamclip all of which can access user conversion settings.

  • HT1338 Why isn't the file size displayed for software updates in the App Store?

    Why isn't the file size displayed for software updates in the App Store?
    My only internet connection is a tether to my iPhone.
    My limited bandwidth forces me to manage my data consumption - I am forced to "google" the file size of the software update so I can decide if I have the headroom in my data plan to take advantage of the update.

    If you click on the name of the Application in your Updates Available list,
    it will take you to the update Imformation for that App.

  • Question about file size when using "Export for Web"

    Hi!
    I created a .mov file and worked to get a great balance between file size and quality so that I could deliver it via the web and make it easier for end users to see the video on a slower connection.
    My question: When I use "Export for Web," my .mov file is converted into a very large .m4v file--more than double the size of the original file. I know that this export option is to optimize the file for a wide variety of users/internet speeds. Am I correct in guessing that the end size is not an issue? I would post the .mov file instead, but I really like the option of embedding into a html page along with the "click to play" option.
    Bottom line--is it better to post the smaller .mov file that i originally started with or to go ahead and link to the bigger .m4v file that was created with the "Export for Web" option?

    "Export for Web" is a feature of QuickTime Pro and it makes 4 files and the html page code for easy copy/paste Web page editing.
    The very first file is called a "reference movie" and it links to the other 3 files (56kbps, 900kbps and 1.5Mbps). It, and the page code, "read" the connection speed of the viewing hardware and "serve up" the correct file based on that connection speed.
    In nearly all cases the "Desktop" version would still be smaller in file size than the original source. The times the file would "increase" in file size would be when an already compressed was used as the source file. You can find out more about your source file by opening it in QuickTime Player and viewing the Movie Inspector window information.
    There are dozens of other html "tricks" that could be used if your source file is already compressed but you want a different display size:
    Page code to show "aspect" or scale="tofit". This code allows values "outside" of those found in the actual QuickTime file be used for the Web page display. A 320X240 QuickTime .mov file looks pretty good at double size (640X480) but the file size would still be that of the source file.
    "Poster Movie" is another html trick that loads the Web based file directly in the QuickTime Player application (bypassing Web page layout restrictions). These files are also known as "Presentation Movies".
    Another method is the QuickTime Media Link file (.qtl). These are simple text based files that are used as a "direct link". These use simple XML (Extensible Markup Language) and are easily created in any text editing application. The simple syntax has amazing control over a simple QuickTime .mov file. You can launch (and quit) the QuickTime Player, display at other dimensions and even embed "links" inside the display.
    Some of my files as examples:
    http://homepage.mac.com/kkirkster/Lemon_Trees/ a "Poster Movie" style.
    http://homepage.mac.com/kkirkster/.Public/RedneckTexasChristmas.qtl
    A QuickTime Media Link file. A tiny file should download to the viewing machine, launch QuickTime Player, present the movie and it even includes a "link" to my Web page.
    Edit: It appears you must now double click the .qtl download to launch QuickTime.

Maybe you are looking for

  • Error message with Publisher attachments in emails.

    When trying to open an MS Publisher document that's an email attachment, I get the following error message:  "Adobe Reader could not open xxxx.pub because it is either not a supported file type or because the file has been damaged (for example, it wa

  • Multiple problems with PC Suite 6.80 and bluetooth

    After several frustrating hours with a spiral of problems, I hope someone can see a way to get this (rubbish) PC Suite software working with my 6230i phone. - System is XP SP2 on a Dell Inspiron 8600 with bluetooth built in. - Syncing with Lotus Note

  • Using wildcards with DirectoryFile.ListFiles()

    Hi all, I need to be able to selectively grab a list of files from a directory, which then go on to get further processed. The selection criteria is that file names will conform to a certain template (eg. "file*.dat"). I located the method I need in

  • Invoice split due to fixed value days

    Hi All, we have created a sales Order with two line items. Whle doing F5 with reference to Sales order invoice getting splitting to two invoices. While check the split analysis system giving a log that  " Fixed value days for line item 10 is 000000 a

  • Problems Installing Camera Raw

    Hi, I had to re-install PS3 and Bridge earlier this week and had to download the Camera Raw and DNG convertor to deal with my D300. I can view RAW files in Bridge and edit them in PS3 but will not let me open them in Camera Raw or apply camera raw se