Problem with add Spotlight Comments script.

Hello,
I am trying to add Spotlight Comments to some files using Automator. I have made an very simple script in Automator that add Spotlight Comments to the files that I have selected in Finder. I save this script as an app and it work great. I also save the same script but not as an app but as a service. The problem here is that when I run the service it add the same Spotlight Comment two times. For example, if I add "@Webshots" with the app the Spotlight Comments of the files is "@Webshots" but when I do it with the service the Spotlight Comments of the files is "@Webshots" "@Webshots". Can anybody help me with this? I will appreciate it a lot any help that you could give me. Thanks

I suspect your workflow includes 'get select finder items' as the first action. get rid of it. it's redundant in a service that accepts files and folder in finder. that's why everything happens twice.

Similar Messages

  • Add Spotlight Comment from file?

    As I understand the way the *Add Spotlight Comments* works, the input is the file (or set of files) to be modified, and the added comments can either come statically from the workflow, or as user input if the workflow permits *Show Action When Run*.
    I have a moderately ugly shell script that downloads and examines a succession of files and builds a description (just a few dozen words) that I want to add automatically to those comments. At the end of my script, I've downloaded the file, and stored the comments I want in a separate temp file.
    As far as I can see, Automator can't do this: I can't specify a file as the incoming source of those new Spotlight Comments, can I?
    Assuming the answer is negative, two quick non-Automator followups:
    1) Is there any shell-script level Unix command that can manipulate the comments (without trying to hack into the .DS_Store files, that is).
    2) Can Applescript do this? And, crucially, where's the best current help for Applescript for someone that hasn't touched it in many years?

    Automator can do it, although some of the actions may not be obvious. Text (for example, the results of your ugly shell script) can be placed into a variable for later use, but you can also get it from a file. If your description/comment is in a plain text file, you can use the Combine Text Files action to get the text, then place it in a variable that can be used with the Set Spotlight Comments for Finder Items action.
    Example:
    1) Get Specified Finder Items (add your description file) (ignore input)
    2) Combine Text Files
    3) Set Value of Variable {Variable: whatever}
    4) Get Specified Finder Items (add the file you want to comment) (ignore input)
    5) Set Spotlight Comments for Finder Items {drag variable whatever to the text field, Append to existing comments}

  • Problem with adobe reader, commenting

    one of our authors is using adobe reader x 11,1, and I send him a pdf (enabled commenting and measuring), but for some reason the commenting-fields does not show on his screen?
    should I save the pdf in another way?

    What do you mean by "commenting fields" exactly? By “commenting filds” I mean the tools in top of the page – delete, highlight etc. When I send the pdf, I save it as “file - save as -  reader extended pdf – enable commenting and measuring”, otherwise the commenting tools normally don’t appear by the author.
    Are they existing comments? no, it is the text in his pdf-book he needs to correct
    Is he able to access the commenting tools? no
    You can try sending a non-enabled version since Reader 11 can add comments to a non-enabled document. will try that J
    Fra: George Johnson [email protected]
    Sendt: 6. november 2012 16:16
    Til: Forlagene Idag & Nordan
    Emne: problem with adobe reader, commenting
    Re: problem with adobe reader, commenting
    created by George Johnson <http://forums.adobe.com/people/George_Johnson>  in Creating, Editing & Exporting PDFs - View the full discussion <http://forums.adobe.com/message/4826849#4826849

  • How to add spotlight comment on more than one file simultaneously?

    Hi
    how can I add spotlight comment on some files in mountain lion ?
    it's very useful and necessary specially when I want to add some comments on many files or photos that newly importet.
    is there any way in OS X  for that?
    Thank you!
    Safa

    Automator workflow of the month: Add Spotlight comments

  • Has anyone had a problem with the spotlight search not working sometimes?

    Has anyone had a problem with their "spotlight search" not working? If I restart the phone it will work for a few days then not work again.

    It's more likely the OP's router.  I have a wifi only iPad 2, yet location services work just fine on my iPad.  If I open maps, my location is found quite nicely.  I have seen that some routers do not provide location services and I suspect the OP has such a router.

  • Having a problem with Add-ons I did not install and now can't uninstall.

    Lately I have experienced problems with re-directing and other issues with Mozilla. I looked in my add-ons list and there are several things there that i did not add manually. (I have been having much trouble with ITunes and noticed a plug in in mozilla and want to know if it is necessary.) Is there a way to keep this from happening? I have been using mozilla for years and liked it when I could do a basic install without any add-ons that I did not request. Here is a list of the things that are troubling me - I am sure a few may be necessary. I would appreciate any help anyone can give me with this?
    PLUG-INS-
    Java Deployment Toolkit 6.0.200.2 NPRuntime Script Plug-in Library for Java(TM) Deploy
    Java (TM) Platform SE 6 U20 6.0.200.2 Next Generation Java Plug-in 1.6..0_20 for Mozilla Browsers
    Mozilla Default Plug In
    (THESE LAST THREE ALL CAME UP AS UNIDENTIFIED PLUG-IN ON MOZILLA PLUG IN CHECK SITE)
    Itunes Application Detector 1.0.1.1
    Itunes Detector Plug-In
    Wacom Dynamic Link Library 1.1.0.3
    Wacom Dynamic Link Library
    Windows Presentation Foundation 3.5.30729.1
    Windows presentation foundation (WPF) plug-in for Mozilla Browsers
    EXTENSIONS_ Java Console 6.0.23
    Java Console 6.0.20
    (Just curious with these two Java consoles - which by the way I am unable to uninstall - the uninstall button is grayed out. and I can only disable.)
    Really frustrated with this, I have already uninstalled Firefox and re-installed it - losing all my bookmarks and these add-ons were there after the re-install. PLEASE HELP!

    For camera problem try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      
    I do not understand what you mean about your update problem

  • Calling all script experts - Wierd problem with a previously perfect script

    Hi,
    As script which used to work fine is now causing me big problems.
    The line that is causing the problem is highlighted in the script editor as:
    tell application "Finder" to set file_List to every file of entire contents of master_Folder -- Obtains all related files.
    On running the script I get the following message:
    Finder got an error: Can't make every file of entire contents of alias "Atlas Mac-Mini:Users:design:Desktop: TESTpictures - for script:Landscape copy:" into type reference.
    As I said the script used to work fine, A couple of members of this forum have tried to rewrite the script for me (thanks to them) but I'm still gettig the same message. I'm wondering is there something wrong with my system (which otherwise works fine).
    I'd appreciate any help and advice on what may be going wrong.
    Thanks, Ray
    In case it helps, here's the full script (which adds the file's path to the filename):
    set master_Folder to (choose folder with prompt "Choose a folder for filename processing") -- Select folder.
    set path_Depth to ((choose from list {1, 2, 3, 4, 5} with prompt "How many paths in these filenames?") as number) -- Select folder depth.
    tell application "Finder" to set file_List to every file of entire contents of master_Folder -- Obtains all related files.
    repeat with i in file_List
    set {oAStId, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
    set fileItemsList to text items of (i as string) -- List of individual path items [disk, folder(s), file] of file of file_List.
    set fileItemsCount to count fileItemsList -- Number of individual path items.
    set fileItemsList to text items (fileItemsCount - path_Depth) through fileItemsCount of fileItemsList
    set fullFileName to last item of fileItemsList as string -- Obtain full file name.
    set AppleScript's text item delimiters to "."
    try -- Obtain file name and file extension.
    set file_Name to ((text item 1 of fullFileName as string) & "-") -- Obtain only file name, less any file extension..
    set file_Ext to ("." & (text item 2 of fullFileName as string)) -- Obtain file extension.
    on error -- Sets up a "If you can't do case 1 then try this" .
    set file_Ext to "" -- If no File Extension exists, set 'file_Ext' to "".
    end try
    set AppleScript's text item delimiters to "-"
    -- Change name of file.
    set name of i to (file_Name & ((text items (1) through ((count fileItemsList) - 1) of fileItemsList) as string) & file_Ext)
    set AppleScript's text item delimiters to oAStId
    end repeat
    Various   Mac OS X (10.4.6)  

    Hello RaymondTomin,
    I don't see any reason for Finder to throw such an error in the said line. Perhaps something is wrong in your system.
    Try the following test scripts. If they fail on any folder you choose, I'm afraid something is surely wrong in your system, not in your script code.
    (If they fail, create new user account and try them in it to narrow down the problem cause. Also try repairing disk and/or repairing permissions.
    And it might help as well to clear some caches by using, e.g. Onyx:
    http://www.titanium.free.fr/pgs/english.html
    Or even to re-apply OSX's Combo Updater:
    http://www.apple.com/support/downloads/
    Good luck
    H
    -- TEST 1
    set fda to choose folder
    tell application "Finder"
    items of item fda
    end tell
    -- END OF TEST 1
    -- TEST 2
    set fda to choose folder
    tell application "Finder"
    try
    items of item fda as alias list
    on error
    items of item fda as alias as list
    end try
    end tell
    -- END OF TEST 2
      Mac OS 9.1.x  

  • Problem with shell commands and scripts from an Applescript Application

    Hi-
    I am fairly new to OSX software development. I am trying to build an application that creates a reverse SSH tunnel to my computer and starts OSXvnc. The idea is that my Mom or anyone else who needs help can connect to me without having to tinker with their firewalls.
    There are plenty of resources on how to do this, and I have found them. What I have a problem with is the following.
    I am building this application in Xcode as an Applescript application, because Applescript and shell scripting are the only forms of programming I know. I use an expect script to connect through SSH, and a "do shell script" for the raw OSXvnc-server application to allow screen sharing.
    The problem is that when I click on the button to launch OSXvnc-server or the button to launch SSH, the application freezes until the process it spawns is killed or finishes. For example, I can set SSH to timeout after 60 seconds of no connection, and then the Applescript application responds again. I even tried using the ssh -f command to fork the process, but that doesn't seem to help.
    I am also using "try" around each of the items.
    What am I doing wrong? How can I make the buttons in my app launch SSH and OSXvnc-server without hanging the application while it waits for them to finish?
    Thanks so much!

    See here for an explanation of the syntax.
    (20960)

  • Weird Problem with Add Row Button in Master Detail Page

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

  • "There is a problem with this installer package - script is required to complete install," - please can someone clarify script supplied.

    I have downloaded EMET 4.1 but it will not install -
    "There is a problem with this Windows installer package. A script required for this install to complete. Contact your support personnel or package vendor."
    I have seen the same problem answered in the support section with a script posted as follows, and wondered if it would solve my problem - only  there is no explanation with it and I have no idea what to do with it! Forgive my ignorance but could someone
    please explain what to do with it please? Many thanks.
    (I looked up the other thread but I was no wiser.)
    This thread is probably a dublet of http://social.technet.microsoft.com/Forums/pt-BR/ab0ee94b-ce61-4a62-8478-41a1e8ac39e2/emet-40-installation-fails-with-error-code-1720?forum=emet
    Please create and check a verbose Installer logfile: msiexec.exe /?
    _FA2E7A16_A819_4F3A_AB7E_0A039BE81BD7 refers the Custom Install Action Blob _6A58D16B437E5B268B3B9D09B8746240 which conatins this vb script in EMET 4.1:
    ' Begin
    REM kill the old EMET 3.0 Notifier process if running (upgrade scenario)
    strAppName = "emet_notifier.exe"
    Set objProcesses = GetObject("winmgmts://" & strMachine).ExecQuery("SELECT * FROM Win32_Process WHERE Caption LIKE '" & strAppName & "'")
    For Each objProcess In objProcesses
        intRetVal = objProcess.Terminate(0)
    Next
    REM kill EMET Agent 4.0 process if running (re-installing scenario)
    strAppName = "emet_agent.exe"
    Set objProcesses = GetObject("winmgmts://" & strMachine).ExecQuery("SELECT * FROM Win32_Process WHERE Caption LIKE '" & strAppName & "'")
    For Each objProcess In objProcesses
        intRetVal = objProcess.Terminate(0)
    Next
    ' End

    Managed to get the installation sorted. Go to Control Panel, and where you have a list of all installed programs, repair all the Apple/Itunes related programs. Installation worked fine after that. Hopefully it helps you out too!

  • Zen Extra -problem with "add to Play " but

    Hi
    I have a creative Zen Xtra, bought it just a week ago, and liked it a lot, (Except the size ...)
    but i think i am having a problem with it. If I have to create a play list, while I am playing songs how to do it ?
    Lets say i am playing song aa from album AA
    i click on AA , and the select song aa and click on Play now it starts playing but now i want to add it to playlist , then i click on aa and in the menu that comes up i click on "Add to Play" but as soon as i click on the "black roller while) to select "add to play" I can see the selection on the previous menu (song aa ) moves to next line..
    Same thing happens if I have to add Album AA to play list, the cursor on the previous manu shifts one position below,
    And the song/alblum is never added to the play list.
    Do i have to do it only using PC ?
    that sucks ..
    let me know

    avoodi wrote:
    Hi I have a creative Zen Xtra, bought it just a week ago, and liked it a lot, (Except the size ...) but i think i am having a problem with it. If I have to create a play list, while I am playing songs how to do it ?Lets say i am playing song aa from album AA i click on AA , and the select song aa and click on Play now it starts playing but now i want to add it to playlist , then i click on aa and in the menu that comes up i click on "Add to Play" but as soon as i click on the "black roller while) to select "add to play" I can see the selection on the previous menu (song aa ) moves to next line.. Same thing happens if I have to add Album AA to play list, the cursor on the previous manu shifts one position below, And the song/alblum is never added to the play list.Do i have to do it only using PC ?that sucks .. let me know
    Basically whenever you make a playlist, it includes whatever is in your "selected music". So let's say you want to add an album to an existing playlist. Go into your media library, add your playlist ("Add to play"). Then add the album you want from the media library (also doing the "add to play" option). When you go into the "selected music" section, click in on the scroll wheel and "save as playlist"

  • Major problem with the BLOG COMMENT SYSTEM - Please advice.

    Hi there!
    I am having some trouble with the way the added Blog comments system appears on my iWeb created site's blog section. The "Add a comment" etc, always get pushed down into the black browser background everytime a new comment gets added rather then the page background actually expanding WITH the added comments and being a part of the page background. Below you'll find a pic of the phenomenon...
    Please help, is it supposed to be like this and i'm doing something wrong or is it a bug in the software?
    I have to add more footer height to the page for every comment that someone will leave me on the blog, otherwise the comments will end up outside the page.
    The page is not yet live and ready but it's like this with all major browsers and platforms when checking...FF, Safari, IE - Mac and PC...
    So, the pics...the first pic is of how it looks inside the iWeb software and is how it should look obviously..the second...well, is how it looks when actually published. It's driving me crazy! I don't want to set the footer height to 1000 to prepare the pages for future comments as it looks real bad. The page should expand with the added comments.
    [IMG]http://i136.photobucket.com/albums/q181/GentleMidget/Temp%20folder/BLOGCOMMENTPR OBLEM1.jpg[/IMG]
    [IMG]http://i136.photobucket.com/albums/q181/GentleMidget/Temp%20folder/BLOGCOMMENTPR OBLEM2.jpg[/IMG]
    /Rich
    Right now? Intel mini   Mac OS X (10.4.8)   A few laptops, a few stationary ones...i like macs
    Right now? Intel mini   Mac OS X (10.4.8)   A few laptops, a few stationary ones...i like macs
    Right now? Intel mini   Mac OS X (10.4.8)   A few laptops, a few stationary ones...i like macs

    Thank you, i'll get on it.
    ***** though, as i can't achieve the same effect with one colore based backgrounds.
    Why don't Apple just fix it in one of their updates? Left a bug report as this need to be fixed.

  • Problems with "GET" in a Script Logic

    Hi,
    I created a Script Logic in BPC NW with the following code:
    *WHEN *
    *IS *
       *REC(GET(CONCEPTO=M30121),CONCEPTO=M213)
    *ENDWHEN
    And I click "Validate and Save" and I get this error:
    Validation Error
    Unknown Dimension Name in Keyword: "*:
    What's happening?
    Regards,
    Miguel.

    Thanks, but my problem is with "GET" function in Script Logic. You don't look at what I do with the code because it's an example. The problem is that the GET function doesn't work.
    I created a Script Logic in BPC NW with the following code:
    *WHEN CONCEPTO
    *IS M30121
       *REC(FACTOR=GET(CONCEPTO=M213),CONCEPTO=M30121)
    *ENDWHEN
    And I click "Validate and Save" and I get this error:
    Validation Error
    Unknown Dimension Name in Keyword: "M213):
    And if the code is like this:
    *WHEN CONCEPTO
    *IS "M30121"
       *REC(FACTOR=GET(CONCEPTO="M213"),CONCEPTO=M30121)
    *ENDWHEN
    The error is this:
    Validation Error
    Unknown Dimension Name in Keyword: ""M213"):
    Regards,
    Miguel.

  • Problem with running Bash shell scripts

    I am unable to run Bash shell scripts on the UNIX Terminal application.
    This is the transcript from the Terminal application.
    Zhi-Yang-Ongs-Computer:/Applications/MetaPost/metapost-1.102 zhiyangong$ ./test1.sh
    dyld: Symbol not found: _BC
    Referenced from: /usr/local/bin/bash
    Expected in: /usr/lib/libSystem.B.dylib
    Trace/BPT trap
    Zhi-Yang-Ongs-Computer:/Applications/MetaPost/metapost-1.102 zhiyangong$
    Is this a problem with the the default installation of the Bash shell? Can I install the Bash shell on my own? If so, how can I do that?
    Also, how can I get the dynamic linker, dyld, to refer to the symbol "_BC"? What does this symbol "_BC" refer to?

    This was in your posted output:
    /usr/local/bin/bash
    You are NOT running the default bash, you are trying to run a private copy.
    The default Mac OS X bash is located at
    /bin/bash
    Try the following:
    /bin/bash ./test1.sh
    Does that work?
    What is the first line of your script? Is it:
    #!/bin/bash
    Or maybe
    #!/usr/bin/env bash
    /usr/bin/env would find the first bash in PATH . I find this most useful for finding perl on different systems, but sh, ksh, bash, zsh, csh, tcsh are all generally found in /bin so I do not bother using /usr/bin/env
    And if you have
    #!/usr/local/bin/bash
    Then the person that wrote test1.sh choose to use something besides the default bash
    Or maybe this script was transferred from some system where you needed to put your own copy of bash in /usr/local/bin because the vendor does not distribute bash
    Then again, you have not showed us what is inside your script, so it is possible something in the script called something else which invoked the /usr/local/bin/bash
    If that is the case, then you might try:
    /bin/bash -x ./test1.sh
    which should show you the commands executed before it died.

  • Problems With Transporting Interaction Center Scripts

    I have problem when I select a Script and click on Transport button in the Web UI for the interaction center, IC_Manager Role. After clicking on the transport button I need to check in the back end (transaction code SE01), if a customizing request has been created for that script I selected.
    So the problem is how do we find out if there is customizin request for that script or not? Is there a Pop Up window which comes after clicking on Transport button which would give me a customizin request number, which could be later used to find the request in backend?

    Hi,
    Try checking this in the BSP Application CRM_IC_ISE.
    If you open the script on the third tab (Script Transport) you can see the transport details.
    Hope this helps.
    Rgds,
    Rajiv

Maybe you are looking for

  • External Optical Drive not working with iMac

    I have a memorex external drive that I have been using to install Windows 7 with boot camp and have successfully used it on 2 mac-mini's. I am not trying to install Windows 7 boot camp on an iMac that has a broken internal optical drive but the exter

  • How to upload External Voucher?

    Hi, I got a work regarding "Voucher upload for Recorded Payments" Requirment: To allow the voucher upload process to pass the recorded payment information into PeopleSoft and create pre-approved, manual recorded vouchers. How:Utilize the existing PYM

  • HT5517 Can I play bbc I player and foxtel go through my iPhone 5 to Apple TV.thanks

    Can I play ibbc and foxtel go from iPhone 5  to Apple TV ,can't get it going thanks.

  • How can I move menus etc to side of screen?

    I'm working on a laptop with Vista and a fairly wide screen, 1366 x 768 pixels. Most websites don't use the full width of the screen, but the height of web page viewable is limited by the various toolbars on top - tabs, navigation, menu and bookmarks

  • Urgent..DN Posting Error

    Hi Gurus, Please help troubleshoot this error encountered during posting of DN..error: Not all packaging materials are available. Under technical data details, system message number is 160 and 150. The material being used has enough stocks in the sys