Access what "get finder items" returns

I want the user to select where a certain app is and then the script copies a folder thats in the same directory as the script to my.app/Contenrs/Recources/data/

I've done this before; I just can't remember how. What is the point of the 'Get finder item; action if you cant get the path to the file?
I already have this applesript at the start of my workflow-
if (exists file :Applications:Secret Maryo Chronicles.app) is true
move pathtome:music to :Applications:Secret Maryo Chronicles.app:Contents:Resources:data:
else
//I want some thing like
//display dialog "Where is Secret Maryo Chronicles?"
//set ans to quoted form of path to selected file
//move pathtome:music to &ans Contents:Resources:data:
I also considered doing a shell script for this, I got as far as-
on run {input, parameters}
set p to quoted form of the POSIX path of pathtome
do shell script "if test -d /Applications/Secret\ Maryo\ Chronicles.app; then mv " & p & "music /Applications/Secret\ Maryo\ Chronicles.app/Contents/Recources/data/music; else "
end run

Similar Messages

  • "Find Finder Items" returns same file twice

    Hey y'all,
    I'm trying to jerry-rig a photobooth for my wedding. I'm using automator to grab 3 stills from a webcam, and place them all in a folder. When I use "Find Finder Items" to send these images to an action that will rotate them, it finds one of the images twice. That is, the results for "Find Finder Items - where: path whose: name contains 'snap' " will return pictures/path/snap3.tiff, pictures/path/snap1.tiff, pictures/path/snap2.tiff, pictures/path/snap3.tiff. This means that when I send these results to my Rotate 90 Degrees action, Snap3 is rotated 180, and when I send them all into a PDF, I get snap3 twice.
    This also happens when I "Find Finder Items" and just look for all the .tiff files in /path, and when use "Get Folder Contents" on /path.
    Background: Running 10.5.8 Leopard on a PPC Mac mini. Fairly new to the world of Mac, so I may be missing something obvious.
    I've been searching for answers for a day or two now, and haven't come across this sort of issue; I apologize if this is old hat, but I really have made a goodfaith attempt to search these and other forums.
    Any help would be greatly appreciated.
    Edited to add: The folder only contains the 3 .tiff files, and the PDF I'm trying to dump them into. I thought maybe I was somehow creating a 4th identical file, but it's not the case.

    Hello & a warm welcome!
    no idea what is happening, other than Apple Software is usually the worst to accomplish thing the way YOU want to.
    GraphicConverter has a powerful Browse Folder function, & many tools for manipulation, & you can keep your Pics wherever you want...
    http://www.lemkesoft.com/

  • Putting Variables in Action "Find Finder Items"

    Hello! I'm using Automator to make a workflow. One of my action in my workflow is to find finder items. I'd like to tell Automator to find items that start with a specific string of text (the text is "016") stored in a variable. Since Automator does not allow me to insert a variable directly, I tried to add the variable by adding the variable's UUID. I followed the method outlined in this website:
    http://hints.macworld.com/article.php?story=20080213200213250
    But even after I put my variable's UUID as "$(9051E0AA-257F-4F00-9A58-50677FB0C07E)", it seems that Automator does not understand, as the results of the action "Find Finder Items" returned no files at all. I tried to store my string as "Storage" and "Text" and used the same method, but it still didn't work. Thank you very much!

    I'm not sure what the action is using to search, but a name extension does not include the period. Another approach would be to get the entire contents of the memory card, and filter the items from there.

  • Automator - Filter Finder Items bug?

    I've only started using Automator a few months ago, but now I ran into a problem, which I think is not my fault, but is a bug in Automator.
    Here's the scenario:
    What I have is a Folder Action on the Downloads folder, and the following list of actions in order:
    Get Finder Items: how.i.met.your.mother.s04e05.srt (this is for testing purposes)
    Filter Finder Items - if ANY of the following are true:
    Name contains "big.bang.theory"
    Name contains "how.i.met.your.mother"
    Name contains "fringe"
    etc
    I managed to find out that the same kind of container (here: Name) could not be used multiple times, because it gives no result in case "Any" of them are true. There is no way to test if any of these strings are present in the file name. I thought I could use this action like a function with "OR"-separated boolean parameters, but apparently that only works if I change the container type, e.g. I use Kind instead of Name. Meaning, if there is only one Name container, then it outputs the correct result (the .srt file, if the statement is true).
    So, did I do something wrong, or is this really a bug in Automator? If you have an alternate suggestion on how to solve this, please don't hold it back

    I have the same problem.
    I am trying to select ANY of the following extentions: JPG, PNG, TIFF and I get no output. While if I only select one extention I do get the right output for the extention selected.
    ANY of the following are true
                   File extention          is          JPG
                   File extention          is          PNG
                   File extention          is          TIFF
         ~~~no results produced~~~
    ANY of the following are true
                   File extention          is          JPG
         ~~~001.JPG, 002.JPG, etc..~~~

  • Maximum file/folder size for Copy Finder Items?

    As I mentioned in another recent post, I used Automator a while back to set up a workflow that would Get Finder Items and then Copy Finder Items. Set it up as a iCal plugin. Worked fine for a long time, but I just checked and saw that the largest of the three folders (1.8 GB) was not being completely copied. The other two folders, much smaller (20 MB or so) were fine, but several folders within that large 1.8 GB folder were being skipped. I opened the workflow, and ran it, and it came up with an error that just told me to check the workflow. Is there a maximum size on this type of workflow? Seemed to work fine before . . .

    The *Copy Finder Items* action will not make duplicate copies. If you want multiple copies of the same item, you will need to rename or duplicate the item before copying, since the copy action doesn't have an option to rename, and the duplicate action doesn't duplicate to a different location.

  • Get Specified Finder Items - Clearing

    I am new to Automator so please excuse if this question is obvious - but it isn't to me. I am trying to write an action to backup my important files. I can do it if I write just one file at a time in a separate action by "Get Specified Finder Items" - Filename followed by "Copy Finder Items" - Filename. Since I have several files I want backed up to different locations I tried writing one action and I tried to do the "Get Specified Finder Items," "Copy Finder Items" in a series. Well, the first one works well, file A goes to the backup A folder. But the next action is supposed to take file B and move it to the backup B folder. Well, what happens is that the second action takes files A and B and moves them to the backup B folder. The next takes files A, B and C and copies them to the backup C folder etc. etc. etc.
    I am wondering if there is a way to clear the finder buffer (if that is what it is called) between my actions so that only file B is copied to backup B.
    I have looked in the utility actions and did not find a way to do this. Any assistance would be appreciated.

    No problem - there are a few things about Automator that are not obvious.
    Note that this is a feature of Leopard's Automator (the OP appears to be running Leopard, although this is the Tiger Automator forum) - a separate action is needed for the same function in Tiger's Automator.

  • "get specified finder items" in automator pulling more than specified

    In part of a larger workflow I copy 5 files to my iDisk. In the next step I select one of those items again using 'get specified finder items' from the same location, add a date to its name in the next step with the 'add date or times to finder item names' then finish the workflow.
    However what is happening is the 'get specified finder items' I'm using to grab the file to be renamed, is actually grabbing all 5 of the files from the previous step. Only the one is showing in the 'get specified finder items' list but it grabs all 5 anyway.
    Anyone see this before? Know a way to fix it?
    Your help as always is very much appreciated. Thank you!

    Keith Kaiser1 wrote:
    In part of a larger workflow I copy 5 files to my iDisk.
    In the next step I select one of those items again using 'get specified finder items' from the same location,
    control-click on this "get specified items" action and select "ignore input". otherwise the previous action in the workflow will pass its output as input for this one. that's what's causing the doubles.
    add a date to its name in the next step with the 'add date or times to finder item names' then finish the workflow.
    However what is happening is the 'get specified finder items' I'm using to grab the file to be renamed, is actually grabbing all 5 of the files from the previous step. Only the one is showing in the 'get specified finder items' list but it grabs all 5 anyway.
    Anyone see this before? Know a way to fix it?
    Your help as always is very much appreciated. Thank you!

  • How do I get rid of box around selected finder items?

    How do I get rid of this black square box that has appeared on my finder items, and other things on my computer? Currently the black box is around the red x on top of the firefox window. It moves with the programs I have open.
    I would upload a screenshot if I could figure out how to do it on this computer.

    Open the Universal Access pane of System Preferences, click on Seeing, and turn VoiceOver off.
    (52092)

  • "Get Specified Finder Items"????

    When I screen capture and often download files, the "Get Specified Finder Items" prompt pops up on my screen.  I have to cancel it 2X and it never has anything to do with what I am working on.
    Can anyone please help me figure out what it is asking for and why I'd be seeing it?
    Thanks for your help.

    I'm sorry for the vague description of my problem.  I typically may have a couple apps running but am not running Automator when it happens.  It seems to prompt me at random times and make me think there is some inadvertent shortcut set up to prompt it but I am not sure what it (the computer...Automator maybe??) is asking for.
    Thanks for any help.

  • Help with what should be an easy workflow.. copy finder item

    Hello,
    I am writing a workflow to backup a folder to an external hard drive. The flow first copies the folder to the desktop, then re-names it with the date and then should be copying it to an external fire-wire hard drive.
    The problem is that the "copy finder item" does not work - only the last sub-folder in the folder actually gets copied. I can't figure out what the problem is. This seems to affect both the copy to the desktop and then the subsequent copy to the firewire drive. Puzzlingly, it sometimes seems to work and copy the whole folder!
    Any advice?
    Jonathan

    Well, I don't know what's causing your problem, but let me suggest an optimization. Unless you have a specific reason to want this, there's absolutely no reason to copy the folder twice. Right now, you're copying to the desktop, renaming the folder, then copying to the external drive. Presumably, you must at some point delete the copy on the desktop. Copying twice means the backup will be half as fast as it could be. It also introduces extra room for errors by increasing the complexity of the task.
    Instead, copy the folder to the destination on the external drive, then rename it once it's there. Perhaps, if you're lucky, in making this change, your problem will solve itself.

  • I recently made a purchase within a game and I have no received my item that I bought yet. After I bought this item iTunes sent me a receipt showing me where and what I bought! I still have yet to get this item! What do I do?

    I recently made a purchase within a game and I have no received my item that I bought yet. After I bought this item iTunes sent me a receipt showing me where and what I bought! I still have yet to get this item! What do I do?

    Hi
    Welcome to Apple Support Communities,
    You can redownload some in-app purchases, see the article below for more info. And, if you aren't able to redownload the in-app purchase, you can always find a link to the application developers support in the App Store.
    iTunes Store: About In-App Purchases
    http://support.apple.com/kb/ht4009
    Redownload an In-App Purchase
    If you lose your In-App Purchases because apps were accidentally deleted or you had to restore your device without a backup, you may be able to download some of your purchases again for free. See which types of In-App Purchases you need to purchase again or can redownload for free in the table:
    Type
    Download for free
    Purchase Again
    Consumable
    X
    Non-consumable
    X
    Non-renewing subscriptions
    X
    Auto-renewable subscriptions
    X
    To download an In-App Purchase again, you must download it from within the installed app using the same iTunes Store account name you used for the original In-App Purchase.
    -Jason

  • Trying to reload firefox and getting this message, when moving to the applications folder: "The operation can't be completed because you don't have permission to access some of the items."

    Been having problems with Firefox/internet for several days, and all my updates seemed current. I decided to try to reload and have removed the other icons/download attempts from the app file. When I try to drag the icon into apps, I now get this message:
    The operation can’t be completed because you don’t have permission to access some of the items.

    * Download a new copy of the Firefox program: http://www.mozilla.com/firefox/all.html
    * Trash the current Firefox application to do a clean (re)install.
    * Install the new version that you have downloaded.
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • Can't save multiple folders to external drive. Get: "The operation can't be completed because you don't have permission to access some of the items." when dragging large folders to mac os extended journalled external drive from OS 10.6.8

    Hi
    I am feeling  VERY desperate!
    After losing an external drive [dont ask....]  -   I got  another one :  2TB WD formatted properly [ OS extended journalled for mac ] ready for action to move  my thousands of files and images and ppts in hundreds of folders across from the laptop to this drive because I travel a bit with the laptop and this is too risky not to back up at home.
    But this message came up after starting on moving folders across [** and not straight away, sometimes after moving  a folder  when  4 of 6 gb of files across  then the message comes up  = very frustrating]:
    "The operation can’t be completed because you don't have permission to access some of the items."
    I am  dragging mixed sometimes large complex folders to this  os extended journalled external drive from my mac book pro OS 10.6.8  - it would take decades to move items one by one or even folder by folder and really confusing. 
    I have  dragged-copied  various small folders and files across successfully, but it is only working 50:50 and I can't leave machine with the idea of things copying eg: overnight - it just won't work....
    I have been browsing google and find some people describing in CODE how they overcome this 'message'   .... but  I  [and I guess some other viewers of this in future & also in desperation]  would need  instructions for beginners....  to try this type of thing.  I don't know any code.
    How can this be happening - I feel ANGRY at APPLE !!!!  for not posting easy fix instructions yet re; this, or better still  updating software so it doesn't happen [ that I can find at least  !!! ] .   There seem to be hundreds of people stuck with this stupid message and inability to back up their projects etc.
    Can anyone help ?
    Many thanks
    Julie
    15 August 2011

    hi Samberl
    thanks a lot for the fast reply.
    I was dragging folders from main folders on the laptop-desktop  onto the external drive icon - to copy them across....
    Your suggestion sounds very promising -  I didn't know about 'cloning'.
    Yes the idea is to backup the laptop -    I thought I would just move it all now, new - and then keep saving/dragging physically   across to the new drive myself each day or two...
    Would this be the sizeof the internal hard drive = c.500 gb  ?   =   under the HD icon on desktop is written  : 
    " 499.76gb , 311.5 gb free  " 
    I can erase and start agin on the new external drive - so this plan is to make two partititions, rather than the one at present, and make one of them 500 gb ?
    I have found CCC [carbon copy cloner] googling - looks good.
    When CCC site says it backs up  the hard drive - would this  mean all my files  [over 100 gb] that are mostly  in folders on the desktop, plus the others in itunes, iphotos etc found in the HD icon,  would all copy across successfully [wherever they are in the computer ]  ?
    thanks again, hope you can clarify these things and then I will go for it. 
    It would be great and amazing if this 'lack of permission' message doesn't show up in the process of doing this ccc transfer - hopeful!
    Julie

  • I get this error code when trying to update from an older version of Firefox: The operation can't be completed because you don't have permission to access some of the items.

    While trying to upgrade from a previous version of Firefox, I get this error code: "The operation can’t be completed because you don’t have permission to access some of the items."
    == installing ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    I resolved the problem in Snow Leopard by logging out of my (admin) account and logging into my daughter's account on the same machine. She doesn't have admin privileges, so when I tried to install Firefox 4 in her account, I had to authenticate with my admin identity and PW. Installation went smoothly after that. My guess is that you could also simply create a new account on the same machine and install Firefox 4 from that. I have no idea why this works.

  • On tnsfr to applic folder, I get "The operation can't be completed because you don't have permission to access some of the items.

    i'm trying to update from 3.2, but when I try to transfer the download to the application
    folder I get the message, "The operation can’t be completed because you don’t have permission to access some of the items."

    See http://kb.mozillazine.org/Installing_Firefox#Mac_OS_X
    Download a new copy of the Firefox program: http://www.mozilla.com/firefox/all.html
    Trash the current Firefox application to do a clean reinstall.
    Install the new version that you have downloaded.
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

Maybe you are looking for

  • APEX and SSO problem

    I was having issues with SSO and APEX. I got error in portal_sso_redirect: missing application registration information. we followed the APEX as partner app on how to site. Problem was that in SSO sdk docs, they state that if ports 80 or 442 are used

  • Problem in struts using JDeveloper10.1.2

    hi Iam completly new to jdeveloper Iam using jdev 10.1.2 for my simple struts application I have action class -- LoginAction form bean -- login (using DynaActionForm) login.jsp to enter username success.jsp for welcom msg failure.jsp --- in this i us

  • HT204088 Find out how much a failed payment was for

    I have my card set up for payment but my bank declined the payment, my own fault as I hit a paid app I didn't want Want to know how much this was for but can't find out what I do owe.....

  • Bug when using JComboBox as JTable CellEditor

    Hello! I have a JTable that displays database information, and one of the columns is editable using a JComboBox. When the user selects an item from the JComboBox, the database (and consequently the JTable) is updated with the new value. Everything wo

  • RFC not found error

    Hi people, I have developed a Z RFC in R/3 system and the same is activated and used there. But when I try to use the same RFC in BW system through 'Pattern' function, it gives me as error that the Function Module not found. Do I need to create the s