Check the resolution and write in CSV

I need a script that checks the resolution of an image and if the resolution is less than 300, it must create a CSV/text file in desktop with the string "the resolution is less than 300. Is it possible to do using script? Please advise.

Audit of the resolution should not be difficult.

var theRes = app.activeDocument.resolution;
if (theRes < 300) {/*insert code here*/};

This could be used to write a txt file, but there are probably other examples on this Forum and http://ps-scripts.com/bb/

////// function to write a preference-file storing a text //////
function writePref (theText, thePath) {
  try {
    var thePrefFile = new File(thePath);
    thePrefFile.open("w");
    for (var m = 0; m < theText.length; m ++) {
      thePrefFile.write(theText[m])
      };
    thePrefFile.close()
    }
  catch (e) {};
  };

Tags: Photoshop

Similar Questions

  • Media Player does not work; message says to check the resolution and brightness.

    My computer just upgraded day and now the media player does not work. I use it everyday and it is a first.
    It says to check the resolution and brightness, and when I did they are recommended places.   Help, please!  Thank you!

    Hello

    1. are you referring to Windows media player?

    2. What is the exact error message?

    3. when exactly you receive this message? By playing any video/audio?

    4 does happen with a particular video/audio?

    5. have you made changes on the computer before this problem?

    If you use Windows media player, you can follow the methods.

    Method 1:

    You can run the fix - it from the following link.

    Solve the problems of Windows Media Player video and other media or library

    http://support.Microsoft.com/mats/windows_media_player_diagnostic

    Method 2;

    Step 1:

    You can uninstall Windows media player. Check out the following link.

    Uninstall Windows Media Player
    a. go initially and in search type 'Turn Windows has or not'.
    b. click on "Turn Windows features on or off".
    c. find multimedia and uncheck Windows Media Player.
    d. restart the computer.

    Step 2 :

    Reinstall Windows Media Player
    a. go initially and in search type 'Turn Windows has or not'.
    b. click on "Turn Windows features on or off".
    c. find the multimedia functions and place a check mark in front of the Windows Media Player.
    d. restart the computer and check the issue.

    For more information, see the article:

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-features-on-or-off

    Post back with the results for you help more.

  • Import of files PDF in photoshop sometimes illustrator allow me to open and check the resolution?

    Here's the scenario:

    Client sends me an illustrator with an embedded image file. I need to check the resolution of the image to see if it is high resolution enough for printing. I delete all the art, but the image in illustrator and then save this file in pdf format with the default of illustrator.

    I drag the pdf file in photoshop where to get the 'PDF Import' dialog box. I don't know if I select the "Pages" button, the resolution and color that appears in the dialog box are not the real specs for the image. I have to click on the 'Images' button and open the file from there, BUT sometimes this option is not available and the 'open' button is grayed. I have yet to understand why this happens on some pdf files that I saved in Illustrator.

    It's the only way I found to check resolutions on embedded files, where I don't have the real chart linked. Someone at - it ideas? Thanks for any help!

    Just check the resolution in Illustrator instead of exporting a PDF file for check in Photoshop.

    If the picture is selected, then the resolution is displayed in the control bar.

    It can be in a nest of groups as well, either double-click on several occasions on the image until you have drilled down to it or select it in the layers panel where the triangles will give access to it.

  • How to check the resolution of the related images?

    Hi all

    Could someone guide me to write a script of the Illustrator who will check the resolution of the image file file linked in PPP?

    Thanks in advance,

    Sanat

    With the help of Sonic, I was able to make it work for me. I have only tested with .psd, .tif and .jpeg

    #target illustrator

    var docRef = activeDocument;

    with (docRef) {}

    We expect instead of 1 point (image) here!

    var placedWidth = placedItems [0] .width;

    var placedHeight = placedItems [0] .height;

    var placedPath = placedItems [0] mpfprojectdir\dev10\src\csharp\projectbase.file;

    The following 2 variables are global

    XpixelDimension = 0;

    YpixelDimension = 0;

    Call the function

    exifDimensions (placedPath);

    Calculate the height & width of DPI

    var widthDPI = Math.floor (XpixelDimension / (placedWidth/72));

    var heightDPI = Math.floor (YpixelDimension / (placedHeight/72));

    Alert ('DPI width is' + widthDPI + "DPI height is" + heightDPI);

    }

    function exifDimensions (imageFilePath) {}

    imageFilePath.open ('r');

    try {}

    While (imageFilePath.tell)< imagefilepath.length)="">

    var row = imageFilePath.readln ();

    var idxOf = (line.indexOf ('') >-1)? line.indexOf (''): line.indexOf ('');

    If (idxOf >-1) {}

    If (line.indexOf ('') >-1) XpixelDimension = parseInt (line.substring (line.indexOf(">") + 1, line.lastIndexOf (')))<>

    else YpixelDimension = parseInt (line.substring (line.indexOf(">") + 1, line.lastIndexOf (')))<>

    }

    }

    }

    catch (ex) {alert ('Fluff') ;}

    Finally {imageFilePath.close (); return [XpixelDimension, YpixelDimension] ;}}

    }

  • Change the size of the resolution and the image does not change the result on the screen?


    I use Photoshop CS3. I'm changing the resolution of several images that will be printed in a newspaper. So the current images are 72 dpi and really huge - for example 36 x 27 inches (size of the document), and when I change it to 300 dpi, the size of the image to reduce to about 8 x 6 inches, as I hope. But the image I see on the screen does not change. Thus, for example, when I open the image originally, it's 33% and the entire image is visible. After I change the resolution and the size of the image has changed accordingly, the image appears to be always the same and it remains at 33%. The image should not shrink on the screen because its size has been reduced? Or if she stays the same on the screen, the percentage should not change? I mean if the size of the document is now 8 x 6, it should be able to display at 100% and not to fill my whole screen... I'm so confused. Thank you...

    Gradded,

    The "Size of the Document" of the dialog box size of the Image is just to specify the size (in inches) that your document will be printed. The ppi adjustment has nothing to do with what is displayed on your monitor. Your monitor does not care something about PPI. The monitor contains a number of pixels and after you change this setting, ppp, the monitor will always be the same number of pixels.

    As long as you leave the box "Resampling" disabled, will not change the size of your image (pixel Dimensions). You won't see any change on your monitor. If you check "Resample", then the size (in pixels) of your image will change.

    I hope this helps.

  • I am (early 2013) iMac 21.5 inch 8 GB which is sutting down then restart unexpectedly often more than once a day. I ran the diagnostics of material, check the permissions and disk. All are no problem. Any suggestions?

    I have an iMac (early 2013 21.5 inch 8 GB) which stops and then restarts unexpectedly often more than once a day. I ran the diagnostics of material, check the permissions and disk. All are no problem. Any suggestions? I bought this machine this June last at B & H in New York.

    Please post a report of EtreCheckof your system. We then look for obvious problems. Please click on the link, download the application and run the report. Once you have the report, please copy and paste into your response to this post.

    If you would like more information on what is EtreCheck, just click on the link and you will find a description of the application.

  • Since I updated Firefox a week ago, my screen saver does not work. I checked the settings and they are still just as I would like.

    My screensaver is scheduled to start after 15 minutes. I checked the preview and it works. However, it does not start after hours of inactivity. What has changed?

    I don't think that Firefox has hooks that would prevent the screensaver from starting.
    It may not be compatible with the latest version of Firefox.
    Please try a different screen saver. I use Digital Aquarium Screensaver and it works well.

  • Why my ipod touch 5 turn on she used that happened last night I went on netflix for like 20 minutes then I closed it and then I'm gone on it again 5 minutes later, he worked later I hung on it and then I just wanted to check the time and it dint work

    I went to netflix for like 20 minutes, and then I closed and then I'm gone on it again 5 minutes later, he worked later I hung up it and then I just wanted to check the time and it dint work I can't see the screen I have tried pressing the home button and the stopcock one its does not work how to fix it

    Try:

    - iOS: do not respond or does not light

    -Also try DFU mode recovery mode post-test

    How to put iPod touch / iPhone in DFU "Karthik doodles."

    -If failed and that you cannot completely turn completely the iOS device, leave the battery to drain completely. After loading a hour repeat the foregoing.

    -Try a different cable

    -Try on another computer

    S ' there is still not successful that usually indicates a hardware problem and an appointment at an Apple store Genius Bar is in order.

    Shop Apple Store - Genius Bar

  • I was using my MacBook today and it crashed and the dock turned silv, I restarted the mac and it was always the same, then I loaded the disk utility and checked the disk and it says disk is fine. It flashes inconsistently gray and the dock turned

    I was using my MacBook today and it crashed and the dock turned silver, I restarted the mac and it was always the same, then I loaded the disk utility and checked the disk and it says disk is fine. It flashes inconsistently gray and the dock has transformed money! I tried to restore Mac OS and then also the same!
    OS El Capitan

    This can help:

    Reboot safe mode (it is a slow process):

    -stop of the mac

    -Start up the mac in shift, press and hold until you see appear it to progress bar, so you can let go

    -When everything started, connect

    -Once connected, stop the mac once again, nothing else is necessary.

    -restart normally.

    Lex

    PS: This clears all system caches.

  • I installed Windows XP but I can't access the internet. I checked the IPconfig and it is empty. The indicator light on the adapter is on green.

    I installed Windows XP but I can't access the internet. I checked the IPconfig and it is empty. The indicator light on the adapter is on green. Of course, the drivers are missing but whom?

    original title: IPConfig and lack of internet access

    Go to your computer manufacturer's support web site
    and search for the Windows XP drivers for your specific computer or motherboard model number.

    If there are Windows XP drivers, then download to a folder on your hard drive and burn it to a CD/DVD.
    Then, after installing XP install all device drivers, starting with the card mother/chipset drivers.
    LAN, Audio, USB, SATA, etc, and so on.

    Note: If there is no XP driver listed, then your computer is not compatible Windows XP.

    List of computer manufacturer support sites:
    http://Windows.Microsoft.com/en-us/Windows/help/contact-support/computer-manufacturers

    If you have an Intel motherboard, you can try the Intel driver update utility: http://www.intel.com/support/detect.htm?iid=dc_iduu

    Graphics/video drivers:
    Check the download site of the manufacture of the graphics card for the newer Windows XP drivers for your card.
    ATI: http://support.amd.com/us/gpudownload/Pages/index.aspx
    NVIDIA: http://www.nvidia.com/Download/index5.aspx?lang=en-us

    =========================  IpConfig ===========================

    Open a command prompt window and type these two commands in the following
    order:
    (1) ipconfig/release
    (2) ipconfig / renew

    J W Stuart: http://www.pagestart.com

  • PC to tv connection error "no signal - check the connections and the external device is turned."

    Original title: pc to tv connection

    I have an Acer Espire Vista 32bits. Connect to a Panasonic TC L32x30 HD TV. The TV has a 'PC' marked port that matches one VGA cable. I have the VGA end of the cable is connected to the TV. The other end is connected to the PC Tower via a DVI adapter to the port where was my monitor.
    TV output is set to "PC". I turned on my PC, the Acer (Bios) screen came. He then shows the block scroll bar. Just as Windows is about to light up, cutting signal. I never get to see my office. A message appears on the screen saying "no signal - check the connections and the external device is turned on."
    I had posted before saying that I had problems ranging from VGA to VGA. That's why I bought the DVI adapter to try another solution.
    I hope I made things clear enough for someone to help him.

    Hello Winston M,.
    I actually solved it. Went to the screen and chose. Connection just how I mentioned. second monitor, default Says. I then checked"Extend Desktop to this monitor.
    As I type this, I can see it on my TV screen.
    Thank you for taking the time to answer my question.
    Problem solved
    Ray

  • I deleted the files from my office, they are still there and I can't delete them again cos keep telling me to check the location and try again

    I deleted the files from my office, they are still there and I can't delete them again cos keep telling me to check the location and try again

    Hi fwhaddad,

    Please take a look at the spirit x possible 2nd answer in the thread for a solution:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/cant-remove-a-folder-because-its-not-there/eba2d232-33d7-43BD-a3dc-1f06292552b2

  • Solutions error checking the disk and Restore Point, pointing to the other.

    Yesterday, my wife picked up the package of virus Security Suite from somewhere and remove, I picked up an error when the disk check runs at startup. Check disk claims it is an error, check the drive and suggests restore since my last restore point. But when I do this, restore the system claims I have a disk error and I need to run the disk check. Which brings me right to the beginning of this problem.

    I'm running 32-bit Windows 7 Home Premium, and have enabled the Windows updates. I use AVG and Malware Bytes to protect my system.

    Thank you!

    Bill Haworth

    You can run check disk from safe mode? This is a level of command prompt:
     
    CHKDSK x: /F /R
     
    Where x: is the drive that you control.
     
    "bill_haworth" wrote in message news: 9c836e2b-b164-44a7-b516-5d5302cca9bf...
    > Yesterday, my wife picked up the package of Security Suite virus from
    > somewhere and back, I picked up an error when running the disk check to
    > start. Check the disk says there is an error, check the drive and
    > suggests restore since my last restore point. But when I do
    >, System Restore claims I have a disk error and I need to run
    > Check the disc. Which brings me right to the beginning of this problem.
    >
    > I am running 32-bit Windows 7 Home Premium, and made Windows updates
    > on. I use AVG and Malware Bytes to protect my system.
    >
    >
    >
    > Thank you!
    >
    > Bill Haworth
    >
     
     
  • There was a pre installed windows 7 on my device. How can I download the windows and write on a dvd.

    * O.T. > window 7

    Hello

    When I bought my laptop, there was a pre installed windows 7 on it with the product key.

    Unfortunately I lost my recovery DVDs as I can't do any other DVD recovery because of a problem with windows.

    I want to re install the window, so first I download my original windows from Microsoft.

    Please let me know how I can download the windows and write on a dvd.

    Thnaks

    Microsoft provides no support for pre-installed OS.  You must obtain from the computer manufacturer.

  • External BB10 Webworks/Cordova opening HTML pages on the device: "this file is not found. Check the URL and try again. »

    Hello fellow people,.

    IM quite in my application of Cordova/Webworks which downloads and save an html file in the SD (blackberry.io.sharedFolder).

    At this point, the config.xml file is defined as:

    read_device_identifying_informationermit >

    access_sharedermit >

    ermissions >

    Now, I'm trying to open the downloaded html that is saved to file:

    /Accounts/1000/removable/SDCard/MainFolder/subfolder/file.html

    My webapp, I try to open as: window.open (path, _self);

    Where path is the file above (which exists on the device!)

    Path is also, with the blackberry.io.SharedFolder + "/ MainFolder/SubFolder/file.html".< of="" that="">

    Also, I get the error:

    This file is not found. Check the URL and try again. If the URL is correct, check that your card is correctly inserted on your device.

    I am running and development off the BB10 Simulator.

    The console does not throw any error that I see.

    Any help or advice would be appreciated.

    See you soon,.

    @varunasingh

    Well, this is awkward.

    I have myself fixed by adding the string: "file://" on my road.

    I hope that others see it until they are too uptight.

    This has been resolved. Thanks for reading.

Maybe you are looking for