Open a file in the finder with script

I have instructions for actions in pdf files. Trying to make a script that opens a specific folder in OS x Finder (/ applications/Adobe Photoshop CS6 / Instructions / FileNameHere).

Is this possible. An alternative is to have only the script go to the finder and show the folder. Or if its possible also opens all files in this folder (but maybe that's not necessary if it is difficult)

Any ideas?

Open the folder

var myFolder = file ('path');

myFolder.execute ();

Open the file

var myFile = file (' path/file.pdf");

myFile.execute ();

Let the user select a folder and open all the .pdfs in the folder

myFolder var is Folder.selectDialog ('select the file!');.

myFiles = myFolder.getFiles ("*.pdf") var;

for (var i = 0; i)< myfiles.length;="">

[i] myFiles .execute ();

};

Tags: Photoshop

Similar Questions

  • "Information MS cannot open this file. The file may be corrupt or incompatible with this version of the information system. »

    Original title:

    MS Info

    I need to send a file Ms Info to Wb tech support so that they can help me with the game on steam download. Whenever they open the file it says it gives the following message "information MS cannot open this file. The file may be corrupt or incompatible with this version of the information system. "I tried to open it too and had the same error message how can I send a file not corrupted for them?

    Information MS cannot open this file.

    They should use Notepad to open the file when it is a txt file.

    Another way to create a portable system information file is to select the hotkey Win + R, type msinfo32 , and press ENTER . Click file, Save and name the file. This method creates a file with an extension of nfo file. Perhaps the recipient expects the file in this format.

  • How can I copy the list of names of files in the finder and set the Clipboard filenames separated by commas?

    Hi guys, I was wonder if anyone can give me a hand with a script.

    I need to be able to paste a list of file names of the files as follows:

    0001.jpg 0002.jpg 0003.jpg 0004.jpg

    At the moment, if I select the files in the Finder, copy to the Clipboard and paste them in TextEdit, they are like this:

    0001.jpg

    0002.jpg

    0003.jpg

    0004.jpg

    I found a similar but slightly different script and I don't know how to change it. Here it is:

    Define extension_list to {"jpg", "" JPG","jpeg","JPEG"}

    the value cbNames (Clipboard text) paragraphs

    Set csvNames to {}

    the tid value delimiters to point to the text of the AppleScript

    the text value of the AppleScript point delimiters ".»

    -now, make a list of names without extensions

    Repeat with the names in cbNames

    If the point 2 of the text names is extension_list then

    copy of text 1 of names at the end of csvNames

    end if

    end repeat

    Journal csvNames

    -now the filenames as comma CONCATENATE string separated

    the text value of the point delimiters AppleScript «»

    csvNames value cross-as text

    the text value of the point AppleScript delimiters tid

    There is an easier way. Open a TextEdit document and paste the list in. Place the cursor at the end of the first item and drag it to the start of the second.

    Press on + command + c to copy and then command + f to bring up find it. Press command + v (do not click in the first search field). Check the 'Replace' box, click in the field replace, and then type a comma and a space.

    Click 'All' and then 'done '.

  • AppleScript: Select the audio files in the Finder, to create playlist

    So, I have modified this Applescript courtesy of WoodenBrain and tried to deconstruct to use. What I need to do, is to be able to select the audio 3-4 files in the Finder, then contextually, select the function "Add to iTunes Playlist", that iTunes ask me for the name of the playlist, create playlist and add files. The script below which realizes, but has an additional step that allows you to select available playlists. I want to remove and don't have iTunes adds the music files to the newly created playlist.

    I know that the solution is somewhere between the block of choice, but I can't seem to get the name of the created playlist and use the the_plvalue. Any ideas?

    on run {parameters}

    Try

    Activate application "iTunes."

    say application "iTunes."

    define newFile to the text returned by (display dialog box default response "Playlist name?" » »)

    make new user playlist with properties {name: newFile}

    set the_playlists to the of each user playlist whose name friendly special is none and smart is false

    the value the_playlists to iSort (the_playlists) to me

    (* to remove the next block *)

    say me to the value the_choice to choose from the list the_playlists with prompt "Add selection to this playlist:

    If the_choice is false then error

    the value the_pl to issue 1 of (every playlist whose name is the_choice)

    (* end choice block *)

    activate

    the value reduced to window 1 to false

    the value cn to (number of points in entrance)

    Repeat with I have from 1 to cn

    say application 'Finder '.

    game of the_item to (point as aliasentry, I)

    If I = 1 then set iname to the name of the_item

    end say

    Add the_item to the_pl

    end Repeat

    end say

    end try

    back entrance

    end run

    on iSort (_list)

    _length set to length of _list

    If _length > 1 then

    Repeat with I have since 2 to _length

    Set temp to the point I of _list

    set j to i - 1

    Repeat while (not (j = 0)) and (point of _list j > temp)

    set agenda (j + 1) of _list to the point of _list j

    set j to j - 1

    end Repeat

    set agenda (j + 1) of _list to temp

    end Repeat

    end if

    return _list

    end iSort

    on is

    Hello

    Put the output of the command of playlist make new user in a variable.

    No need of a loop, the add command takes a list of files.

    -----------------

    the term {parameters}

    Try

    Tell application "iTunes".

    activate

    the text returned by the value tNom (show the default dialog response 'The Playlist name?' » »)

    the value of the_pl to the new playlist user with properties {name: tNom}

    Add entry to the_pl

    reveal the_pl - show the new playlist

    tell the end

    try to end

    Back entrance

    end of race

  • Whenever I go to open a file PDL the windows media center opens.

    Whenever I go to open a file PDL the windows media center opens.  I downloaded 9 remains, but I can't always open the PDL files.  Windows Media Center keeps opening.  What is the way?  Can I disable the Media center?  Help!

    Whenever I go to open a file PDL the windows media center opens.  I downloaded 9 remains, but I can't always open the PDL files.  Windows Media Center keeps opening.  What is the way?  Can I disable the Media center?  Help!

    You mean PDF not PDL. (I presume).
    Save a PDF to your HARD drive, make a click right, choose 'Open with', choose "choose default program", choose Acrobat, and then at the bottom of the dialog box, click "always use the selected program to open...". "and then click OK.
    See if that helps... If you find my answer helpful, please click the button "Vote as helpful"! Thank you! My Blog

  • Open a folder in the Finder?

    Hello

    I had the script below in a .jsx file, it was located in the "Adobe Photoshop CC 2015/settings presets/Scripts" and it worked perfectly.

    Now for some unknown reason - it won't open the file hardcoded in the finder

    If something has changed in a previous update, which makes this useless script?

    Any ideas how I now just open a folder in the finder, directly from a script?

    Thank you in advance.

    var f = file ("Applications/files/Photoshop\ Tuts\ and\ Plugins Plugins/Photoshop\ /'");

    f.Execute ();

    If this is what has been returned then it should work.

    var f = Folder("/Applications/Files/Photoshop_Tuts_and_Plugins/Photoshop_Plugins");

    {if (f.Exists)}

    f.Execute ();

    } else {}

    Alert ("file has not exist\nPlease check your way!");

    }

  • Open all files in the selected folder .indd

    Hi all

    I want to open all files in the selected folder .indd.

    Try the script:

    myFolder var is Folder.selectDialog ("select a folder with the InDesign files");.

    var myFiles = [];

    var myFileList = myFolder.getFiles ();

    for (var i = 0; i < myFileList.length; i ++) {}

    var myFile = myFileList [i];

    myFile.name.match(/\.indd$/)

    myFiles.push (myFile);

    App.Open (myfiles)

    }

    Can someone give a solution to me.

    Thanks in advance

    BEGINNER

    myFolder var is Folder.selectDialog ("select a folder with the InDesign files");.

    If (! MyAccount)

    Exit (0);

    var myFileList = myFolder.getFiles ();

    for (var i = 0; i)< myfilelist.length;="" i++)="">

    var myFile = myFileList [i];

    (Si (myFile instanceof fichier && {myFile.name.match(/\.indd$/i))}

    App.Open (MyFile);

    }

    }

    See you soon,.

    Stephen

  • Can I make the data in a cell in numbers link to a file in the finder?

    Numbers will allow me to create a link to email or an Internet link, but apparently not to the files in the Finder. Anyone has a suggestion to make this happen?

    AFAIK, you can't link to a local file, except via the script, which is awkward.  You can put a file in Dropbox and copy / paste the public link to this file in connection of numbers. By default, clicking the cell number will download the file from Dropbox, which may or may not be what you want.

    SG

  • Using the field of comments on the files in the Finder

    If you select a file in the Finder and use the "Get Info" feature, there is an editable field called 'comments '. If all the data is inserted in this field, that data remains with the file even if you move the file to another source? For example, if I am looking at a JPG file in the Finder, and I add a brief description of the subjects or the location of the image in the comments field, will be those who comments always be there if I burned the file on a CD, send the file to someone on a Windows computer, copy it to a USB etc. ?

    My goal for this question is the following. I have thousands of family photos, some dating back over 100 years, I'm going to be scanning in the near future. Once scanned, I'll be sitting with my mother and aunts to see these photos/files so that we can determine who is in these pictures, where they were taken, when they were taken, etc. I don't have most of the information I had at the moment I'm digitizing them, but I want an easy way to fix this information to each picture I revisit it with my mom and aunts. I also want to be able to eventually distribute digital files of other members of the family, but most of them do not use Mac (their loss, I know... LOL!). I don't think that using Photos for Mac, Picasa or a third-party to sort application and label will be an option. 30 years from now, who knows what technology will be available, so I want to keep the process as simple and generic as possible, so they can still access it in the future.

    The comments field will work for this purpose, or you have any suggestions for a better way to permanently fix this information to JPG/photo files? Thank you very much for your help!

    Long history, response to shore. Yes, the comments will stick. BUT: there is no guarantee that 30 years from now it will be a BONE that is able to read them.

  • Bug in several windows in the finder with several screens

    When you use finder on several screens (with separate spaces) there is a problem when you enter fullscreen.

    Steps to reproduce:

    1. open finder on a screen.

    2. open another window in the finder on a different view.

    3. full screen or finder window (any).  You will be able to observe a Visual problem where the finder window that you do not use maximizes and enters full screen then go back to normal, just before the finder window you use between full screen.

    4. at this point your finder window full screen is missing in the top navigation bar.  To reveal it, open your mission control and the space finder-click and you will see.  Basically, the navigation bar is on the finder space expanded while the rest of the finder is on office space.

    5a. If you try to exit the full screen, your finder window will freeze.

    5. before going back to full screen, if you go to the mission control and drag your space viewfinder on the screen where your other window finder is currently on, you will be able to leave the full screen and the finder window will not freeze.

    Cause of the error:

    Still, the problem occurs if the following conditions are met:

    -You have two or more finder windows (if you have only a window of finder, you can always expand it without any problem)

    -You maximize a window of finder, and it's the only finder window on that office space

    For example, if you have three screens and you have 2 1 1 finder windows in offices respectively, you will encounter the error when you maximize the window of the solitary finder on the monitors of 2nd or 3rd.  Maximize a window in the finder on the first monitor has no questions.

    Please try to reproduce.  I hope that it is easily reproduced on any machine and I hope this will be fixed as soon as possible.

    Can not repeat to aid by end 2013 15 "rMBP and Asus 24" external display connected DisplayPort cable.

  • How to add comments to several files in the finder using automator?

    I need to add comments to multiple files in the finder. Can I do this using Automator application, without going file-by-file and press command + i to add a comment one by one?

    Hello

    Open the Automator application:

    Select the Service icon

    Create the workflow, as this image

    Save the workflow.

    -----------

    After that, to add comments:

    Selectionner select files in the Finder, right-click on the selected files and select your service in the menu 'Services' in the context menu.

  • So, what are these two arrows that appear on some files, such as page files in the Finder?

    So, what are these two arrows that appear on some files, such as page files in the Finder?  I kinda afraid to hit one of them for fear that they're going to mess with the file.

    Could you post a screen so that we know what you're talking about!

  • I can't get email responded and open a file of the adobe reader software because it says it's corrupt.

    Original title: I can't open a file of the adobe reader software because it says it's corrupt can help you April

    I can't get email answered because he has been blocked for some reason any

    and I can not open a file with adobe reader, because sometimes corrupt
    can you help me
    April

    Hello

    Question by E-mail:

    1. What is the full error message when you try to open the emails?

    2. using a webmail or an email client?

    3. when a webmail, what webmail?

    4. If an e-mail client which e-mail client?

    Response to help you further.

    Problem with Adobe Reader:

    1 does happen with a file in particular?

    2. If it works well before?

    3 did you changes to the computer before the show?

    Uninstall and reinstall Adobe Reader.

    Step 1: UN-install Adobe Reader.

    Reference:

    Uninstall or change a program: http://windows.microsoft.com/en-US/windows-vista/Uninstall-or-change-a-program

    Step 2: Re-install Adobe Reader.

    Download and install the latest player here Adobe: http://get.adobe.com/reader/

  • When I try to open a file in the same window instead it opens in another window

    original title: the behavior of the windows

    so my office is weird, as if you try to open a file in the same window instead it open in another window, etc. and the parameters are not to do, and I can not copy, paste, or drag-and - unless u open the file that you are trying to paste in... I mean that it shows that u copied or cut the file but it does not allow you to the paste it where you want it to... help?

    http://support.Microsoft.com/kb/813711

    I found the solution to a lot of the post regarding the behavior of the window as in not displaying thumbnails do not, or only display as icons. u could not drag-and - drop a file in a folder, the only way possible to copy and paste in the opened folder u he wanted.   When in an open folder u wanted to open another folder in the same window, that he would open the clicked folder u on in another window... Yes I think the setting may have changed with the installation of another program or uninstall. Ive search searched n not thanks to technicians to norton and Microsoft to answer the caz forums of course they know not what theyre doing... but in any case, I saw in another question, someone asked on thumbnails disappear n someone sent them the link to a microsoft support page click on the fix it , and it fixes everything that was to play place configurations... I'm really tired of people who say "oh come on in your folder options and check the personalization", how much this race was frustrating... Well hope it works... for future people and those that have not been answered... and im running vista...
  • When you try to open a file of the photo to view the photo, it will automatically to the hp print model

    Original title: hpc309A printer

    In Windows 7, whenever I try to open a file of the photo to view the photo, it automatically goes to the hp print template.  It's so frustrating when I want only to view the photo.  Help, please!

    Hi MonroeBroadway,

    Welcome to the Microsoft community. According to the problem when you try to open a file of the photo to view the photo, it will automatically to the hp print model.

    ·         Did you do changes on the computer before the show?

    I'll help you with this problem. This could be a file association problem. I suggest you to follow the steps in the article and check.

    Change the programs that Windows uses by default

    When you run an .exe on a Windows XP, Windows Vista or Windows 7 computer file, the file can start another program

    I hope this helps. Let us know if you need help with Windows.

Maybe you are looking for

  • I have a HP Pavilion g7-1279dx Notebook sm bus controller driver missing

    I looked on web view intel but did not see the driver. help please

  • Poll: Offer acrylic window Alienware Area-51 R2 owners

    Posted September 2 event 2016 PAX on Alienbook This is a cast acrylic window three angle with edges rounded RAS: the dream scenario I want one, not you? should it be transformed into a part (limited edition?), sold through Alienware.com/gear Yes peti

  • RDSH Lag when you browse the gateway SSL Secure-IT

    Hello I have a ticket open with support Dell/Quest, but thought I'd post here this ongoing problem where someone can help you. Question: I'm on version 8 vWorkspace and all servers are virtual Win2008R2 on ESXi 5.  When clients Web Connector (Windows

  • Foldable list help

    Hello Help QML and Javascript pro.  So far, things work fine, I can get the list to load and collapse but I can't edit the styles of the components.  When I debug it seems to ignore the component settings that I have.  I used the sample code from thi

  • Which layout manager to use

    Hello everyone, I drove to the development of my application, I realized that the way in which I developed my application makes ony eyes straight on "BOLD" size screens. My footer is set to use all the way up, but what I really want, it of so he can