Applescript for show in finder

I have the HFS path to a file in a script.
How do I use applescript to display the file location in a finder window?

got it
reveal "MacintoshHD:....file.txt"

Similar Messages

  • Show In Finder no longer working for dock icons

    When I context-click / right-click an item on my dock, followed by the Options -> Show in Finder, it no longer does anything. It has previously opened the Finder and revealed the item, as it is supposed to, but now, it does not work. Has anyone encountered this and / or know of a resolution for it? Thanks in advance for your help

    try logging out/in or restarting. if that does not help delete the file homedirectory/library/preferences/com.apple.dock.plist and log out/in. your dock, spaces and exposé will be reset to the defaults. see if it works now.

  • Help with Simple Applescript for Midipipe

    Hey all, I'm in desperate need of help with some Applescript for use in a program called Midipipe:
    http://web.mac.com/nicowald/SubtleSoft/MidiPipe.html
    I simply require an Applescript for Midipipe that filters out all OFF notes except for the most recently pressed key, or most recently pressed ON note. So for example, when multiple keys have been pressed, only the most recently pressed key will send an OFF note. I hope that is clear enough, i've had some major issues trying to get this work and my last hope is to hit the forums and find some help .. I've posted on some of the audio forums and i'm hoping someone here knows how to code this.
    Thanks so much!! .. Its for an upcomming show next week so i'm hoping someone can get me in the right direction to solving this.
    -Jes

    I try to help, but you'll need to apply your brain cells to get it working with what I've already explained (three times with what I offer below).  Try something like the following (I am renaming your buttons to ch1,ch2,ch3,ch4,ch5,ch6 so that the same functions can be shared by all buttons...
    // this assigns listeners to all 6 buttons
    for(var i:uint=1; i<7; i++){
              this["ch"+String(i)].addEventListener(MouseEvent.CLICK, fl_ClickToSeekToCuePoint);
    // this processes any one of the 6 btns when they are clicked
    function fl_ClickToSeekToCuePoint_1(event:MouseEvent):void
        var btn = event.currentTarget;
        var cuePointInstance:Object = vid.findCuePoint(btn.name);
        vid.seek(cuePointInstance.time);
       resetButtons();    // this makes all buttons go back to normal
        btn.upState = btn.overState; // this makes the clicked button change states
    function resetButtons():void {
         for(var i:uint=1; i<7; i++){
              this["ch"+String(i)].upState =  this["ch"+String(i)].hitTestState;
    For this to work, your buttons need to have the same artwork in the hit frame as they do in the up frame.

  • Help Needed: Automator Applescript for Folder Action - Encode Video

    Hi !
    I have created an Automator Applescript for a Folder Action to do the following:
    When a new video file is moved to the target folder (i.e. Download of Vuze is done), automatically launch the Applescript Action that does the followin g(Applescripted):
    1) Using "run shell script" and FFMPEG on a UNIX command line, determine Width/Height, Framerate, Bitrate
    2) Calculate encoding parameters (slightly reduced bitrate, reduced Aspect etc.)
    3) Using "run shell script" with ffmpeg on the command line and the calculated parameters to encode the video file
    At the same time, the action is written to a log file so I know if a file is recognized, when encoding started etc.
    It works fine if I save this Action as an .app, make an alias on the Desktop and drop video files on it.
    It also works fine if I attach the script to a folder as a folder action and drag a video file in there.
    However, when I attach the script as a folder action to the Vuze download folder, it encodes only some video files, i.e. if there was a download of 5 files, chances are good that it will not encode 1 or 2 files out of those 5.
    If for example a second download finishes while the encoding for the first download is still going on, sometimes the second file starts encoding after the first encode finishes, sometimes it does not, the file does not make the log file at all, i.e. the folder action missed it or the automator action dropped it because it was still encoding. Still, sometimes it happens, sometimes not.
    As I need a solution that is 100% accurate, I would like to ask if there are any ideas on how to do this better maybe? As I am not an Applescript Guru, I would need some help to know what works and what doesn't and what the syntax is.
    My main idea right now:
    Similar to how ffmpegX works with its "process" application, have a second script (as .app) that receives the files to be encoded from the automator action and puts them in a queue, then proceeds to encode this queue while the main automator action is free to receive the next file.
    Writing this second app is quite straightforward (a modified version of my current script) but I have some questions I need help with:
    1) How do I call another applescript from within an existing applescript that launches the new applescript in a new process?
    2) How do I pass parameters to this new applescript?
    3) In case of this "Queueing" Idea, once I called the external applescript the first time, how do I make sure when I call next time, that I don't open a second instance of this script but rather pass another queue item to the original instance to be processed?
    Or in general: Is there a better way to achieve this automatic encoding solution that I have not thought about?
    Alternatively:
    Does anyone know how to call the "process" application that comes with the ffmpegX package with the correct parameters to use as a queueing / processing tool?
    Thanks!
    Joe
    Message was edited by: Joe15000
    Message was edited by: Joe15000

    To do this, I created an Automator workflow with an Applescript snippet to change the 'media kind'.
    Here is the 'Run Applescript' workflow step code:
    on run {input, parameters}
              tell application "iTunes"
                        set video kind of (item 1 of input) to movie
              end tell
              return input
    end run
    Prior to this running, I have an 'Import Files into iTunes' workflow step.
    You can switch out 'movie' with: 'TV show', 'music video', or anything in ITLibMediaItemMediaKind.
    Good luck,
    Glenn

  • Song plays in iTunes, but file does not show in Finder

    Bizarre issue. My 26,000+ song iTunes Library lives on an external LaCie drive. All the songs play fine in iTunes (and I can hear the drive spin up when I go to play them). However, for a few thousand of the songs, the song's file is not in the physical location where iTunes shows it to be.  
    An example is below... these are two song file locations from the 'Master Tune Library.xml' exported from iTunes.  Both of these files
    show in iTunes, and they both play just fine from iTunes (no exclamation mark next to the song names). Yet only the first file (one ending in 1219.mp3)
    is at that location.  The one ending in 1249.mp3 does not show in that location, either via Finder, or via Terminal.
    From Terminal I get no results from "find /Volumes/LaCie500 -name espace_20101103_1249.mp3"  (without the dbl quotes) But if I run the same command for the 1219 file, it does find it in the expected location.  Really stumped as from where iTunes is playing ...1249.mp3.
    /Volumes/LaCie500/myTunes/Unknown Artist/Unknown Album/espace_20101103_1219.mp3
    /Volumes/LaCie500/myTunes/Unknown Artist/Unknown Album/espace_20101103_1249.mp3
    Mac Mini
    Mac OS X 10.5.8
    iTunes 10.5
    iTunes Media folder location is /Volumes/LaCie500/myTunes   Both options underneath for "organize" and "copy files ... when adding to Library" are checked.
    Thanks!

    Try using EasyFind utility to reveal the files.
    Are you absolutely positive those files exist? You have verified with iTune's summary view thatthe files is what you think it is?
    Show In Finder will usually not only open the directory but also leave the actual file highlighted.

  • I want to change my ringtone and i want choose the song of my choice. i am not able to find "show in finder" and i am using itune 12.1help me please

    i want to change my ringtone but i am not able to find "show in finder" as i could proceed with my work, so i want to know how could i do it? please help me!
    also provide me all the steps for changing the ringtone.

    http://www.huffingtonpost.com/2014/10/02/make-free-ringtone-iphone_n_5901540.htm l

  • Toolbar button/hotkey for "show cover page in two page view" in Acrobat X?

    In Acrobat X, how about make a toolbar button/hotkey for "show cover page in two page view"?  I find toggling this option to be useful for changing up the order of adjacent pages in magazines/books in which a two page spread has to match for a full large picture.  Due to frequent toggling, I would like a button/hotkey for this for easier access.

    Hotkeys for existing menu items are not modifiable, but you can add a scripted button which toggles it with the following code:
    if (layout.substr(-5)=="Right") layout = layout.replace("Right","Left");
    else layout = layout.replace("Left","Right");
    For info on how to add a button with a folder-level script, see the Acrobat SDK documentation. Scripted buttons will appear in a new panel on the tools pane in Acrobat X, not on the tool bar.

  • "Show in Finder" is never enabled in File Menu

    For some reason I can never get the "Show in Finder" selection in the File menu to become enabled. It is always "grayed out". I have a photo selected, and then choose the File menu and go to "Show in Finder" but the option is grayed out. Am I doing something wrong? Much appreciate any help.

    That's it. Thanks for the clarification.
    Curious, with a managed library, is the easiest way to get access to the original master file simply to right click on the image and "export" it?
    -Poul

  • Show in finder/reveal in finder Problems

    I recently had to wipe my computer clean. Luckily, I back up my iPhoto library, so everything was fine when it was time reinstall things. However, I notice that if I right click on a file, the "Reveal original in finder" option is greyed-out. Why is this? Before, I could always use the "show in finder" option.

    "Show Original File" will be disabled if there is no Modified version of the picture. This suggests that when you restored your Library, all pictures were imported as Originals. Can you tell if you have your old original versions or your edited version showing up in the Library? Or do you have one separate file for each version now since the reinstall?
    Either way, you should still have the "Show File" option, which will show you where your photos are stored in the Finder.

  • Show in Finder intermittent

    Good Morning:
    When highlighting a clip or still in the viewer, a right click normally produces the option of "show in finder", second from the top. Certain, I can't determine a pattern, clips & stills do not give this option. If I go to the Finder and search for that item, I am able to find it with the same file path as a previous item that did give the show in finder option. This will happen with successively numbered items. I believe that everything was imported using the same procedure.
    Puzzled I am
    Thanks for your input
    Kent

    In a Managed library all the files are stored inside the library package. In a Referenced library the files are stored wherever you like, separate from the library.
    A library can contain both managed and referenced masters. An easy way to see which you have of which type is to create a smart album of all your images, in the selection critera pane click on the gear wheel in the top right hand corner and choose file status as an additional filter brick. You can then set the folder to show just managed or just referenced images.
    HTH

  • 'Show in Finder' grayed out.

    Aperture 3.5.1 is running in Mavericks and using managed libraries. I notice that the option to Show in Finder is grayed out as well as Show in Project
    I've rebuilt the library database but that has not solved the problem.

    léonie wrote:
    I'm not 100% sure but I think Show in Finder used to work. If the Show in Finder only works with referenced libraries why is there a Locate Referenced File listed as a separate option?
    "Locate referenced files " will also only work for referenced files. You are right, it should be graded out for a managed Aperture library.
    Iirc, "Locate Referenced Files" is ignorant.  It only knows that none of the selected Images has a referenced Original after you run the command.  That's why, afaict, the command is available even when the selection contains no Images that have referenced Originals.

  • Show in finder not working

    Using Spotlight, the "show in finder" option does nothing. Also, under Safari downloads the spyglass icon "show in finder" does nothing. All of the sudden. No installs that I know of, except latest OSX and Mac apps updates. Anyone else seen this? Any help MOST appreciated!

    Please read this whole message before doing anything. This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it. Step 1 The purpose of this step is to determine whether the problem is localized to your user account. Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.” While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin. Test while logged in as Guest. Same problem? After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it. *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing. Step 2 The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows: 
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
     Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Show in Finder Option Missing from Search

    I can't figure out how to find the "Show in Finder" option after searching for a file. Is there some new secret finger gymnastics option to get this to show up? It used to be all I had to do is right-click.

    I found "Show all in Finder" after scrolling down like you said. Unfortunately, that does not show those search results in the finder, it runs a new search and shows thousands of results that I have no interest in. What I want is the "Top Hit" usually, but it becomes a needle in a haystack after clicking "Show all in Finder". With trial and error I found that if I hold down the Command key, the tail end of the file path is shown in the preview window, but not enough to find the file and it is not clickable.
    Another thing I found is that if you click on the Kind section heading, it will run a search showing all documents of that kind -- also useless since there are thousands. Unfortunately clicking on "Top Hit" does nothing. Is it possible there is another secret way to get the functionality I want that used to be there?

  • AE shows WD External disk in Utility, does not show in Finder

    Hi,
    I just bought an AE (802.11n). The setup was relatively easy. I updated both the software Airport Utility (5.3.2) and Firmware (7.3.2).
    When I connect my freshly formatted (HFS+ Case-Sensitive + Journaled) external WD 120Gb HD (which has an external powersupply) to the USB port, it DOES show in the Airport Utility (though without the name), but I cannot connect to it, neither does it show in Finder, etc.
    When I take a freshly formatted (HFS+ Case-S, Jour.) Memorystick of 4Gb, and I plug it in it both shows in the Airport Utility and I find it in the shared section of Finder.
    I can attach the WD Harddrive to my local MBPro and it works fine (either through USB & Firewire)
    What is going on? Has anyone else experienced this (the topics I found dealt with Windows, or wrongly formatted, or Time Machine, etc.)?

    Thanx for your suggestion: this was however already checked. Just to make sure I unchecked and re-checked the option. No difference
    Except for the WD disk not showing (my intend is to get it working), an additional question would be: WHY is there no problem when using a memory stick?
    Apparently the memory stick has a 'quality/ability' which the external HD does not have causing it to function but which one?

  • Hard disk does not show in finder

    WE had a system failure with our server instance a month back and since then, one of my internal HD's will not show in finder. It's also causing carbon copy pro to fail when trying to find it. I have verified it can be seen in the disk utility and from a terminal prompt. I rant this to confirm:
    { diskutil list; echo; diskutil cs list; } | open -f -a TextEdit  
    No matter what I do, i cannot see it. Verify and repair in disk util come up saying it's okay. I have selected show HDD's in finder preferences. A possibly related side effect is that my users, who can browse this over the network, cannot search in the directory.
    Any help you can lend would be helpful.
    OSX version 10.8.4
    TC

    Not partitioned - part of a raid. Was initially formatted, yes. THis has been in production for a couple of years and just dropped out. "THIS DISK" is the disk that vanish. I renamed it for forum purposes.
    Results:
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.0 TB     disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:                  Apple_HFS basecampHD              999.3 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.0 TB     disk1
       1:                        EFI                         209.7 MB   disk1s1
       2:                  Apple_HFS HD2                     999.9 GB   disk1s2
    /dev/disk2
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.5 TB     disk2
       1:                        EFI                         209.7 MB   disk2s1
       2:                  Apple_HFS THIS DISK               1.5 TB     disk2s2
    /dev/disk3
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.5 TB     disk3
       1:                        EFI                         209.7 MB   disk3s1
       2:                  Apple_HFS TTHIS DISK.Backup        1.5 TB     disk3s2
    /dev/disk4
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:        CD_partition_scheme                        *217.8 MB   disk4
       1:              CD_ROM_Mode_1 TSIXL-320W              189.7 MB   disk4s0
    /dev/disk5
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     FDisk_partition_scheme                        *3.0 TB     disk5
       1:                  Apple_HFS ServerTime              3.0 TB     disk5s1
    No CoreStorage logical volume groups found

Maybe you are looking for

  • Fundamental question: Integrating non-EJB classes

    Hi there, sorry to ask that, but how can i integrate classes other than EJBs into my assembled application ? i use sun's deploytool and their ri application server. my task is to call a class called J2EEManager at the app server startup, which has to

  • A question about conversion model.

    I'm programming a JSF-based forum. See the code below: <jsp:useBean id="CommentBean" class="net.gleamynode.notes.http.faces.CommentBean" scope="request" /> <jsp:setProperty name="CommentBean" property="pageId" value="${p.id}"/> <h:form id="commmentFo

  • Whats a good and easy software for making websites?

    I need to make a website for our business, not sure how do this.

  • Changed %windir% variable into something else and now most of my administrator files won't open

    I have an Alienware 14, Windows 7 . So I changed the variable %windir% into something else and now most of my administrator items won't open. A lot of my files won't open anymore. When I try to open some things, it would say "The system could not fin

  • Unable to set quorum device

    Hi all! I'm installing SC 3.1 on two sun fire v240 nodes with storedge 3511 When running the 'scsetup' and choosing a quorum device (d4 - see list below), I get error: scconf -a -q globaldev=d4 scconf: Failed to add quorum device (d4) - global device