Searching for Automator variable for the Filename?

Hi!
I just started to use Automator and im unsing it quite well now.
While creating a new service, id like to insert the filename of the selected file
into the "Subject:" field of a new opened Mail.
Everything works fine, i only cant find a way to have the filename of the selected file
being inserted to the "Subject" area in my Mail?
Perhaps i only need to know how to create this variable or du you know a different way to solve this?
Regards
DaNylz

You can get the name and place it into a variable using the *Set Value of Variable* action where it will be available for use in the *New Mail Message* action. There isn't a default action to get just the name of a Finder item, so you will need to use something like the *Run AppleScript* action and do it yourself or find a third party action. Speaking of third party actions, it just so happens that I have a *Get Names of Finder Items* action - you can download it here. Using my action, an example using variables would be something like
0) -- selected items are automatically passed to the service workflow
1) *Set Value of Variable* { Variable: _Original Item_ }
2) *Get Names of Finder Items* { Name: file name and extension }
3) *Set Value of Variable* { Variable: Name }
4) *Get Value of Variable* { Variable: _Original Item_ } ( *Ignore Input* )
5) *New Mail Message* -- drag Name variable into the subject field

Similar Messages

  • How can one search for a filename anywhere on the Mac?

    How can one search for a filename anywhere or everywhere on the Mac?

    You can configure Spotlight so it will also search in system files or you can download and use EasyFind 4.9.3 that doesn't require special configuration.
    Get Spotlight to search system files (and more)
    Enter the search term in the Finder window's search field.
    Click the [+] button in the search bar to add a search option.
    In the first drop down menu choose Other.
    Choose “System Files” from the list that pops up (and check the box to place in drop down menu to avoid this step later,) click on the OK button.
    Now back in the Finder choose Include from the second drop down menu.

  • Search for the end of each text frame?

    I'd like to insert some kind of marker at the end of each of my text frames in order to preserve where the page breaks occur, even after I've exported my file. The only function in InDesign that seems to recognize pages is the text variables that can pull the first/last instance of something on a page. Other than that, I can find no way of searching for the end of a page or end of a text frame.

    myFrames = app.activeDocument.textFrames;
    myCharStyle = app.activeDocument.characterStyles.itemByName("Marker");
    for (a=0; a<myFrames.length; a++){
         if (myFrames[a].characters.length>0){
              myFrames[a].characters[-1].appliedCharacterStyle = myCharStyle;
    The above script will apply a character style called Marker to the last character of all text frames in the document (prepare a character style called Marker [case-sensitive] before you run the script, or change the name in the second line.
    I guess a character style isn't an ideal solution, though, as it might override something else.
    Perhaps a strikethrough? In which case, change the 5th line to:
    myFrames[a].characters[-1].strikeThru = true;
    Does that help?
    Ariel
    www.FreelanceBookDesign.com
    Message was edited by: Arïel to correct syntax error.

  • I can not store all my Music on my internal Macbook pro hard drive so I am storing it on a large external drive connected to my airport extrem.  How do I get Itunes to search for the music here with out trying to copy it to my laptops hard drive??

    I can not store all my Music on my internal Macbook pro hard drive so I am storing it on a large external drive connected to my airport extreme (2 TB drive plugged into the USB port).  I see the drive on my laptop and I can add and delete files no problem.  How do I get Itunes to search for the music here with out trying to copy it to my laptop's hard drive?  I don't have enough space to do that.

    How did you move the music to the external drive?  What exactly is on the drive?  The entire iTunes folder or only music?  If it is the entire iTunes folder you can do the option+start suggestion earlier.  If you copied only music and did so by dragging it there then you need to delete it again and consolidate/organize it there instead so iTunes tracks the move.  iTunes 12 for Mac: Change where your iTunes files are stored - http://support.apple.com/kb/PH19507

  • Searching for the fields of a table(very very urgent)

    Hi all,
    i am in graet trouble now.i am searching for the fields like
    1)country of origin where the finished good is created.
    2) customer sales order number
    3)customer sales order line number
    i am writing a report for delivery order.in this report i have to refer customer PO & customer SO .
      i mean, my company has a customer ( seagate) & seagate has a customer (let maxtor).initially maxtor will give a PO to seagate then seagate will raise a SO againest maxtor.
       Then seagate will send PO number(of maxtor), PO line number,SO number(seagate), SO line number(seagate) to our company.
       Then i have to write a report for sales order & delivery order.in these reports i have to refer seagate PO number & seagate SO number for reference.
    i got PO number as vbkd-bstkd but not getting any field for reference Sales order.plz advice me on this. it is very very urgent.
    ur idea is highly appreaciated.
    Thank u very much.
    Regards
    pabitra

    check out tables VBAK(sales order header), VBAP(sales items)

  • How can I get a search bar added to my email archives screen to make it easier to search for the right archives folder, Samsung has one so I was surprised to see that I have to scroll up and down to find the right folder?

    How can I get a search bar added to my email archives screen to make it easier to search for the right archives folder, Samsung has one so I was surprised to see that I have to scroll up and down to find the right folder?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    You can modify the pref <b>keyword.URL</b> on the <b>about:config</b> page to use Google's "I'm Feeling Lucky" or Google's "Browse By Name".
    * Google "I'm Feeling Lucky": http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=
    * Google "Browse by Name": http://www.google.com/search?ie=UTF-8&sourceid=navclient&gfns=1&q=
    * http://kb.mozillazine.org/keyword.URL
    * http://kb.mozillazine.org/Location_Bar_search

  • My Epson XP - 400 will not print wirelessly or via USB. The documents just sits in the print queue while the computer is "searching for the printer".  I set up the printer on the computer and it is connected to the wireless network.

    I'm unable to print wirelessly or connected via USB with my Epson XP-400. The computer continues to say it's searching for the printer even though the printer is set up on the computer, the printer is connected to the wireless network and the USB is plugged into the computer.

    Try resetting your Mac's printing system as shown here:
    http://support.apple.com/kb/PH14141

  • I just made the switch to mac. I am have installed all the new PS6 CC and bridge and I am now trying to add some presets to my  ACR but when I search for the folder to place them it is not there.  From what I researched it says it should be under camera l

    I just made the switch to mac. I am have installed all the new PS6 CC and bridge and I am now trying to add some presets to my  ACR but when I search for the folder to place them it is not there.  From what I researched it says it should be under camera library/application support/adobe/camera raw/settings but I can only get to library/application support/adobe/ and then there are two different camera raw options I have checked both and there are not settings folder. If anyone can help me please thanks

    Apple most likely has the same poor taste that Microsoft does when it come to defaults.  Microsoft likes to hide things like  settings, preset, folders etc from normal users  think the dumb or something else.  If Apple also hide things you will have to  make some system setting changes that will allow Finder to do it job and find it for you.

  • Im trying to download the new itunes so i can use my iphone 5 , however , the new itunes requires Mac OS X 10.6.8 or later and i cant seem to install that onto my imac even after searching for the new update (my imac is currently on 10.5.8.

    .Im trying to download the new itunes so i can use my iphone 5 , however , the new itunes requires Mac OS X 10.6.8 or later and i cant seem to install that onto my imac even after searching for the new update (my imac is currently on 10.5.8.

    You have already seen that you cannot load the new iTunes into your 10.5.8, so as Neil says, you need Snow Leopard (current cost £14).    And you'll probably need to update the disc you buy via the combo update, though that is free.
    As far as the new iTunes is concerned, there's been a certain amount of grumbling so you may want to study the forums before you update.   The main problem has been with album artwork which does not transfer easily.

  • Encountered an error when attempting to open Lightroom for the first time. Went to Lightroom Help and searched for the error "An error occurred when attempting to change modules". Non of the solutions helped. what now?

    Encountered an error when attempting to open Lightroom for the first time. Went to Lightroom Help and searched for the error "An error occurred when attempting to change modules". Non of the solutions helped. What now?

    I am getting this error message as well. I have just downloaded Lightroom recently. I try to click on Lightroom / preferences....and nothing happens. I tried to uninstall and it is greyed out so I can't do that either. Suggestions? Please help?

  • TS1702 i cant download new application on my Iphone everytime i open app store then searching for the application i want to download when i Tap the FREE sign it become half square and never downloaded.

    i cant download new application on my Iphone everytime i open app store then searching for the application i want to download when i Tap the FREE sign it become half square and never downloaded.

    Sometimes this happens because the app won't run on the iOS version of the device you are trying to install it to.  Go to the app store and make sure it will run on iOS 3.1.3 (many only run on iOS 4 or higher).

  • When I am searching for any particular song or album from my shared ITUNES folder, the search is conducted  in the apple store and not on the shared library. How to search for the song in the shared library

    I am using IPAD Mini.When I am searching for any particular song or album from my shared ITUNES folder, the search is conducted  in the apple store and not on the shared library. How to search for the song in the shared library

    Search for shared library is impossible, as far as I know.  Searches supported - are local and internet.

  • BUG: Searching for the word "united" in Contacts returns far too many results

    To recreate this bug:
    1. I open the Contacts App on my iPhone 5 running iOS 6.0.1.
    2. In the search field within the app, I search for the word "united." (For example, if I am trying to located the address book card for United Airlines).
    3. Instead of showing me just the results of companies/people that have the word "united" in their name or notes field, the app returns almost every single one of my contacts as a search result, EVEN THOUGH THESE PEOPLE DO NOT HAVE THE WORD "UNITED" IN THEIR NAME, DESCRIPTION, OR NOTES FIELD.
    I think this might be happening because I have used the iOS feature of connecting my Contact App with Facebook.  Because of this, many of my contacts have the word "unified contact info" in their description. Although this doesn't entirely explain why searching for the word "united" would show "unified contact info" contacts, the Facebook/Contacts App connection may have something to do with this bug.
    Regardless, if I search for the word "united" on my iPhone, the Contact App still returns almost every single contact as a search result, even though the word "united" cannot be found within those contacts.

    I think it is because the system adds "United States of America" to every address by default.
    You need to search using different parameters, for example, "Airlines".

  • As soon as I keep the iPhone (iPhone 5) on the desk the network goes off and when I swipe it then only it starts searching for the network and get it in 30 seconds.  If someone is calling me during that time it says mobile is either switched off or outsid

    As soon as I keep the iPhone (iPhone 5) on the desk the network goes off and when I swipe it then only it starts searching for the network and get it in 30 seconds.
    If someone is calling me during that time it says mobile is either switched off or outside the coverage area.
    Please help

    You may need to force it into recovery mode. See here: https://discussions.apple.com/message/17766427#17766427

  • How to search for the particular ABAP Object

    Hi,
    I am using the SAP 4.6C machine, I need to search for the particular ABAP Object. Plz can anyone help me in this.
    Regards,
    Pralhad P. Teggi

    You'll get a better response if you ask a meaningful question.
    If you want to scan for Business Objects (BOR) use transaction SWO1
    For ABAP classes / objects use a combination of transactions SE24 / SE18 / SE19 and /or SE80
    (SE 18 /  SE 19 are for Badi's)
    Cheers
    Jimbo

  • Hello guys,My first time in community.my problem is that my SIM card was working ok and from today at the left of the screen up shows that is searching for the sim.I contacted the carrier and the SIM card shows that is working.Any suggestions?

    Hello guys,My first time in community.my problem is that my SIM card was working ok and from today at the left of the screen up shows that is searching for the sim.I contacted the carrier and the SIM card shows that is working.Any suggestions?

    Hey NicolasZen,
    Thanks for the question and welcome to the Apple Support Communities. I understand that you are experiencing issues with “No Service” or “Searching” on your iPhone. The following resource provides some great troubleshooting steps that you may wish to try:
    iPhone: Troubleshooting No Service
    http://support.apple.com/kb/TS4429
    Your iPhone may have one of these symptoms:
    - iPhone displays "No Service" or "Searching" in an area of good coverage
    - iPhone doesn't regain service when returning to an area of coverage
    Resolution
    If you encounter either of the above symptoms on your iPhone, follow these steps to attempt to resolve the issue. Test after each step.
    1. Toggle airplane mode: Tap Settings > Enable Airplane Mode, wait five seconds, then turn off airplane mode.
    2. Turn iPhone off and then on again.
    3. Remove the SIM card and verify that it's a valid, carrier-manufactured SIM. Also verify that it isn't damaged, worn, or modified. Then reinsert it.
    4. Check for a carrier-settings update. Connect to a Wi-Fi network. Then tap Settings > General > About. If an update is available, iOS will ask you if you want to install it. If Wi-Fi isn't available, connect your device to iTunes.
    5. Update your iPhone to the latest version of iOS.
    6. Reset network settings by tapping Settings > General > Reset > Reset Network Settings. This will reset all network settings, including Bluetooth pairing records, Wi-Fi passwords, VPN, and APN settings.
    7. Restore the iPhone.
    Thanks,
    Matt M.

Maybe you are looking for

  • Thunderbolt display wakes up to horizontal shreds

    After a few days of my new Thunderbolt display has a problem  - running with my mid 2011 11" MacBook Air (Lion / 1.8GHz Core i7/ 256 GB) . When the screen wakes up, it momentarily (3 secs) displays the screen in thin horizontal shreds. As if I ran th

  • Using dual screens cannot play sound on either screen

    I have an HP Envy TS m6 sleekbook. I use 2 screens for work.  If I want to play audio on either screen, it doesn't play anything.  I'm not sure whats going on or what settings I need to tinker with or change.   Any help would be great

  • SQL Developer Shortcuts to Objects

    Is there a way to define a shortcut to take me to a Table, package, etc of interest? I have many DBs defined in SQLDeveloper and it's a pain to continually traverse to the object of interest. Thanks Dan Edited by: user1032922 on Apr 10, 2013 6:43 AM

  • Premiere cs4 Not Responding after a few mins use

    Hello, I have been using premiere cs4 to make stop motion videos for awhile on this computer and have started having problems with the software. Everytime I try to use it after a few mins sometimes 5 sometime less it goes white and says not respondin

  • EDGE Animations not working in inDesign

    When I create a number of animations and export them as sepearte animations, and then take them into my inDesign project and place them as articles in my Folio, they either don't work and /or are very sluggish.  Also in one of the EDGE animations I h