Find Finder Items duplicating items

I am trying to select files from a folder based on date created.
I am being able to do it with Find Finder Items but the result is duplicting files on folders and files itself.
How can I filter to have just 1 copy of each file?
Thanks

Sorry,
Let me try to be more specific.
I need to copy to a folder all music and videos created by my itunes on my music folder since June 1st 2008.
As I run the copy finder items on my Music folder there are many items that are present on the results there are duplicate. i.e. I have a specific TV Show from House as a File and at the same time I have the hole House season as a folder that has the same file inside.
I need to have this file ( and all others that are duplicate) only once.
Is it possible to either filter it or have the results right in the first place?
Thanks

Similar Messages

  • Automator 2.2 "Copy Finder Items" Action Error

    Hello all,
    When I try to create an Automator workflow that finds a type of file (pdf) in a nested folder structure and copies those files to another folder - essentially extracting the pdfs from their nested folders - I get an error message.
    1) I use the "find Finder items" action. I specify the top-level folder and set the kind to "document"
    2) It returns 56 items
    3) I use "copy Finder items" action and specify a new folder
    4) The copy action fails stating that a given file "couldn't be saved in the folder". It does not always error-out on the same file. Changing or creating a new folder doesn't help.
    I have tried this under two user accounts with the same result. I have tried deleting preferences. The same error results.
    Any ideas?
    I am running 10.7.1 on a 15" MacBook Pro, early 2011.

    I was having the same issue.
    I found another solution: instead of copying files, you could move files.
    1) Duplicate your original folder (unless you want to move/extract your files entirely to the new folder) (right click the folder and select duplicate)
    2) Create a new folder as the destiny folder
    3) Open automator and use the following actions (in order) on the workflow
    - Find Finder Itens (browse to your source folder; select "any"; select "extension"; select "end with"; type "pdf") (you can do the same thing with the actions "get specified finder items" combined with "filter finder items")
    - Get Folder Contents (and mark repeat for each subfolder found) (use this action if you have subfolders)
    - Move Finder Itens (browse to your destination folder, that you created previously)
    Now you can delete the duplicated folder.

  • Copy Finder Items - how to generic for multiple user home directories?

    I am creating an Automator workflow to allow my networked users to be able to copy certain files from a central location to their local home directory and overwriting their local copy. How to I make the destination of the Copy Finder Item to be generic home directory (something in the like of "~/Document/MegaSeg User Data/MegaSeg Database" instead of a fixed user home directory)?

    Hi
    It may be easier with an appleScript (which you could incorporate into an Automator action if you wanted).
    --start script
    set the_file to -- path to the file you want to copy goes here
    set docs_folder to path to documents folder from user domain
    tell application "Finder"
    set target_folder to folder "MegaSeg Database" of folder "MegaSeg User Data" of docs_folder
    duplicate the_file to target_folder with replacing
    end tell
    -- end script
    This will replace existing files of the same name in the target folder. Hope it helps.

  • 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.

  • Error ERR-1802 Unable to find item

    I was using HTML DB to execute a query. The region expected an item and based on
    that item to retrieve a Clob and output to the GUI. Here is the PL/SQL code:
    begin
    if :P11_X_ID is null then
    return;
    end if;
    for x in (
    select column_value
    from table( query_cfile( cursor( select theClob from demo where id =
    TO_NUMBER(:P11_X_ID) )
    ) ))loop
    htp.prn(x.column_value);
    end loop;
    end;
    When I first time ran a page I was able to get the page back without any issue;
    however when I entered the second ID, I got "Error ERR-1802 Unable to find item
    id "187846523855309166"
    OK
    Unexpected error". Then I tried running the same page on different browser
    (switch from firefox to IE ) and entered the second ID I was able to get the
    page back. The same problem happened for the second browser, that is, if I
    entered another ID to search, I got the same error.
    And I turned on the trace using p_trace=YES
    grep -in err stra_ora_10201.trc
    83: error_template,
    205: where parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY',
    'NLS_SORT')
    221:alter session set NLS_TERRITORY = "AMERICA"
    600: process_error_message,
    634: process_error_message,
    873:ERROR #34:err=1 tim=2122883685
    968: value="wwv_flow.find_item_err2"
    979: value="wwv_flow.unexpected_err"
    1038:select error_page_template
    1102: value="wwv_flow.err"
    1113: value="wwv_flow.err"
    1304: value="wwv_flow.find_item_err2"
    1315: value="wwv_flow.unexpected_err"
    1358: value="wwv_flow.err"
    1369: value="wwv_flow.err"
    1549: value="wwv_flow.find_item_err2"
    1560: value="wwv_flow.unexpected_err"
    1603: value="wwv_flow.err"
    1614: value="wwv_flow.err"
    1818:ERROR #34:err=1 tim=2122883705
    1874: value="wwv_flow.find_item_err2"
    1885: value="wwv_flow.unexpected_err"
    1928: value="wwv_flow.err"
    1939: value="wwv_flow.err"
    2143:ERROR #34:err=1 tim=2122883713
    2199: value="wwv_flow.find_item_err2"
    2210: value="wwv_flow.unexpected_err"
    2253: value="wwv_flow.err"
    2264: value="wwv_flow.err"
    2757: error_template,
    2879: where parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY',
    'NLS_SORT')
    2895:alter session set NLS_TERRITORY = "AMERICA"
    3274: process_error_message,
    3308: process_error_message,
    3575: error_message,
    3582: nvl(error_display_location,'ON_ERROR_PAGE')
    error_display_location
    3640: value="wwv_flow.no_page_to_branch_err"
    Since the error happened on Cursor #34, here I retrieved the #34 from the trace
    file:
    =====================
    PARSING IN CURSOR #34 len=461 dep=1 uid=63 oct=2 lid=63 tim=1069307285981395
    hv=698873200 ad='5bdf916c'
    INSERT into wwv_flow_data (
    flow_instance,
    item_id,
    item_element_id,
    item_name,
    name_length,
    item_value,
    session_state_status,
    flow_id
    ) values (
    :b6,
    :b5,
    :b4,
    :b3,
    length(:b3),
    :b2,
    'I',
    :b1)
    END OF STMT
    PARSE #34:c=0,e=132,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=1069307285981373
    BINDS #34:
    bind 0: dty=2 mxl=22(21) mal=00 scl=00 pre=00 oacflg=03 oacfl2=1 size=24
    offset=0
    bfp=4063ffe8 bln=22 avl=11 flg=05
    value=3707546874081609208
    bind 1: dty=2 mxl=22(21) mal=00 scl=00 pre=00 oacflg=13 oacfl2=1 size=24
    offset=0
    bfp=0ae3d23c bln=22 avl=09 flg=09
    value=1486322312855973
    bind 2: dty=2 mxl=22(21) mal=00 scl=00 pre=00 oacflg=13 oacfl2=1 size=24
    offset=0
    bfp=0ae3e0d0 bln=22 avl=02 flg=09
    value=1
    bind 3: dty=1 mxl=32(08) mal=00 scl=00 pre=00 oacflg=13 oacfl2=1 size=32
    offset=0
    bfp=0ae3e13c bln=32 avl=08 flg=09
    value="P11_X_ID"
    bind 4: dty=1 mxl=32(08) mal=00 scl=00 pre=00 oacflg=13 oacfl2=1 size=32
    offset=0
    bfp=0ae3e13c bln=32 avl=08 flg=09
    value="P11_X_ID"
    bind 5: dty=1 mxl=128(02) mal=00 scl=00 pre=00 oacflg=13 oacfl2=1 size=128
    offset=0
    bfp=0adbb4e0 bln=128 avl=02 flg=09
    value="57"
    bind 6: dty=2 mxl=22(21) mal=00 scl=00 pre=00 oacflg=03 oacfl2=1 size=24
    offset=0
    bfp=4063ffc4 bln=22 avl=03 flg=05
    value=105
    =====================
    PARSING IN CURSOR #35 len=119 dep=2 uid=0 oct=3 lid=0 tim=1069307285985274
    hv=3286148528 ad='5bfee648'
    select c.name, u.name from con$ c, cdef$ cd, user$ u where c.con# = cd.con# and
    cd.enabled = :1 and c.owner# = u.user#
    END OF STMT
    PARSE #35:c=0,e=176,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=1069307285985249
    BINDS #35:
    bind 0: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24
    offset=0
    bfp=407975e0 bln=22 avl=04 flg=05
    value=32720
    EXEC #35:c=0,e=514,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=1069307285986292
    FETCH #35:c=0,e=88,p=0,cr=2,cu=0,mis=0,r=0,dep=2,og=4,tim=1069307285986517
    STAT #35 id=1 cnt=0 pid=0 pos=1 obj=0 op='NESTED LOOPS (cr=2 r=0 w=0 time=78
    us)'
    STAT #35 id=2 cnt=0 pid=1 pos=1 obj=0 op='NESTED LOOPS (cr=2 r=0 w=0 time=74
    us)'
    STAT #35 id=3 cnt=0 pid=2 pos=1 obj=31 op='TABLE ACCESS BY INDEX ROWID CDEF$
    (cr=2 r=0 w=0 time=70 us)'
    STAT #35 id=4 cnt=0 pid=3 pos=1 obj=53 op='INDEX RANGE SCAN I_CDEF4 (cr=2 r=0
    w=0 time=62 us)'
    STAT #35 id=5 cnt=0 pid=2 pos=2 obj=28 op='TABLE ACCESS BY INDEX ROWID CON$
    (cr=0 r=0 w=0 time=0 us)'
    STAT #35 id=6 cnt=0 pid=5 pos=1 obj=49 op='INDEX UNIQUE SCAN I_CON2 (cr=0 r=0
    w=0 time=0 us)'
    STAT #35 id=7 cnt=0 pid=1 pos=2 obj=22 op='TABLE ACCESS CLUSTER USER$ (cr=0 r=0
    w=0 time=0 us)'
    STAT #35 id=8 cnt=0 pid=7 pos=1 obj=11 op='INDEX UNIQUE SCAN I_USER# (cr=0 r=0
    w=0 time=0 us)'
    =====================
    PARSING IN CURSOR #35 len=84 dep=2 uid=0 oct=3 lid=0 tim=1069307285988552
    hv=2458412332 ad='5b779008'
    select o.name, u.name from obj$ o, user$ u where o.obj# = :1 and o.owner# =
    u.user#
    END OF STMT
    PARSE #35:c=0,e=142,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=1069307285988532
    BINDS #35:
    bind 0: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24
    offset=0
    bfp=407975e0 bln=22 avl=04 flg=05
    value=32720
    EXEC #35:c=0,e=431,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=1069307285989485
    FETCH #35:c=0,e=187,p=0,cr=5,cu=0,mis=0,r=1,dep=2,og=4,tim=1069307285989805
    STAT #35 id=1 cnt=1 pid=0 pos=1 obj=0 op='NESTED LOOPS (cr=5 r=0 w=0 time=169
    us)'
    STAT #35 id=2 cnt=1 pid=1 pos=1 obj=18 op='TABLE ACCESS BY INDEX ROWID OBJ$
    (cr=3 r=0 w=0 time=74 us)'
    STAT #35 id=3 cnt=1 pid=2 pos=1 obj=36 op='INDEX UNIQUE SCAN I_OBJ1 (cr=2 r=0
    w=0 time=37 us)'
    STAT #35 id=4 cnt=1 pid=1 pos=2 obj=22 op='TABLE ACCESS CLUSTER USER$ (cr=2 r=0
    w=0 time=75 us)'
    STAT #35 id=5 cnt=1 pid=4 pos=1 obj=11 op='INDEX UNIQUE SCAN I_USER# (cr=1 r=0
    w=0 time=16 us)'
    EXEC #34:c=0,e=8619,p=0,cr=8,cu=10,mis=0,r=0,dep=1,og=4,tim=1069307285991108
    ERROR #34:err=1 tim=2122883685
    =====================
    Here is the version:
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE 9.2.0.3.0 Production
    TNS for Linux: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production
    My page is very simple, it contains one region, one item, one
    button (click to search).
    Would you please advise what next step should be?
    Thanks in advance,

    SQL> desc demo;
    Name Null? Type
    ID NOT NULL NUMBER(38)
    THECLOB CLOB
    The query just took the CLOB content and divided it into table of varchar2(4000) base on chr(10). The query worked well in PL/SQL when I replaced htp with dbms_output.
    The branching was the default one, "Redirect To Page 11 (the same page)". I only created one region, one item and one button. That branching was automatically created.
    Below was the output when I turned on the debug mode.
    0.00: A C C E P T: Request=""
    0.01: Fetch flow info
    0.01: alter session set nls_language="AMERICAN"
    0.02: alter session set nls_territory="AMERICA"
    0.02: ...Setting NLS Decimal separator="."
    0.02: Fetch session state from database
    0.03: ...Check instance 936431675924660583 owner
    0.03: ...Fetch iconbar, page, computation, process, ...
    0.03: Fetch session header information
    0.03: ...fetch page attributes: f105, p11
    0.04: ...Check security schemes
    0.04: Save form items and p_arg_values
    0.05: Saved session state: 1486322312855973 "P11_X_ID" changedValue="49"
    0.05: Show ERROR page...
    0.06: Processing point: AFTER_ERROR_HEADER Home
         Error      ERR-1802 Unable to find item id "26896009627"
    OK      
    0.07: Processing point: BEFORE_ERROR_FOOTER
    Unexpected error
    0.08: ...Determine if user ADMIN with SGID 504322868864112 can develop application 105 in workspace 504322868864112
    Edit ApplicationEdit Page 11NewSessionNo DebugHide Edit LinksShow Edit Links
    0.09: Saved session state: 26896009627 "" newValue=""
    0.09: Show ERROR page...
    0.10: Processing point: AFTER_ERROR_HEADER Home
         Error      ERR-1802 Unable to find item id "27133775492"
    OK      
    0.11: Processing point: BEFORE_ERROR_FOOTER
    Unexpected error
    0.11: ...Determine if user ADMIN with SGID 504322868864112 can develop application 105 in workspace 504322868864112
    Edit ApplicationEdit Page 11NewSessionNo DebugHide Edit LinksShow Edit Links
    0.13: Saved session state: 27133775492 "" newValue="N"
    0.13: Show ERROR page...
    0.14: Processing point: AFTER_ERROR_HEADER Home
         Error      ERR-1802 Unable to find item id "17708687878"
    OK      
    0.15: Processing point: BEFORE_ERROR_FOOTER
    Unexpected error
    0.15: ...Determine if user ADMIN with SGID 504322868864112 can develop application 105 in workspace 504322868864112
    Edit ApplicationEdit Page 11NewSessionNo DebugHide Edit LinksShow Edit Links
    0.16: Saved session state: 17708687878 "" newValue=" "processing of sql statements""
    0.17: Show ERROR page...
    0.18: Processing point: AFTER_ERROR_HEADER Home
         Error      ERR-1802 Unable to find item id "79615715229400664"
    OK      
    0.19: Processing point: BEFORE_ERROR_FOOTER
    Unexpected error
    0.19: ...Determine if user ADMIN with SGID 504322868864112 can develop application 105 in workspace 504322868864112
    Edit ApplicationEdit Page 11NewSessionNo DebugHide Edit LinksShow Edit Links
    0.20: Saved session state: 79615715229400664 "" newValue="22467871247389"
    0.21: Show ERROR page...
    0.22: Processing point: AFTER_ERROR_HEADER Home
         Error      ERR-1802 Unable to find item id "187846523855309166"
    OK      
    0.22: Processing point: BEFORE_ERROR_FOOTER
    Unexpected error
    0.23: ...Determine if user ADMIN with SGID 504322868864112 can develop application 105 in workspace 504322868864112
    Edit ApplicationEdit Page 11NewSessionNo DebugHide Edit LinksShow Edit Links
    0.24: Saved session state: 187846523855309166 "" newValue=""

  • "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/

  • Rename Finder Items from Automator doesn't work correctly!

    I made a rename finder items in Mac OS X 10.4 by just using rename finder items task and save as a plug in for finder. It was working fine. I tried to use it in 10.5, but it doesn't really change the names. I created a new one or even tried to modify the workflow, but it still not working. Can someone verify the issue? Thank you.

    I can verify the issue, but I have no solution. Very frustrating, as I used to batch rename all the time in just the same way.

  • How to display the current name when renaming Finder item

    Is there any way to get Automator to display the current name of a Finder item when renaming an item?
    I want my users to be able to copy and rename a folder template but I want to display the folder template's current name as a default in the renaming dialogue window, so the user follows the correct naming format.

    Since you've already hacked into it, if you've got developer tools installed, it is most likely in the nib file that is in the English project folder in the Resources.
    I don't know what further implications that will have on the app in general, though.
    If you are a little adept at applescript, you may want to create your own Applescript Studio app to do this instead of Automator. Also, take a look at Platypus to make a wrapper around you applescript instead of AS Studio.
    Message was edited by: Barney-15E

  • "Ask for Finder Items" Automator action broken?

    OK, I'm pulling my hair out on Automator (again). I'm on OS X Lion 10.7.1.
    Here's what I want to do: I have image files named "something-something (S1).png" and I want to create a copy of each file named "something-something (S2).png" then resize that copy to 50% the size of the original. A perfect choice for Automator, I would have thought.
    So here's the workflow I came up with:
    1. Ask for Finder Items: Type set to Files and Allow Multiple Selection checked.
    2. Duplicate Finder Items: To create a copy, hopefully named "something-something (S1) copy.png".
    3. Rename Finder Items: Set to Replace Text, with Find set to "(S1) copy" and Replace set to "(S2)" (in basename only).
    4. Scale Images: Set to By Percentage 50.
    I would have thought that would have worked. Trouble is, it doesnt even get to first base. When I run the workflow I see the expected choose file dialog, and I choose a test PNG file. Then Automator happily announces that "Ask for Finder Items completed" in the log, and proceeds to sit .. and sit ... and sit. It says it's running, but nothing is happening. No duplicate file action happens, no rename .. nothing. Oh, and yes, I do see the selected filename in the "Results" area for the Ask for Finder Items action.
    What's going on? Any ideas? For a supposedly intuitive tool I find automator inscrutable (and I'm a 30 year seasoned operating system oftware developer).
    TIA,
    --Tim

    FWIW, if you've found a bug, please contact Apple Support folks or (if you have access) use the BugReport tool. 
    (This is a user forum, and the Apple Engineering folks may or may not see any reports that are posted here.)

  • Can't use "Copy Finder Items" after "Run Workflow"

    Create a simple Automator workflow:
    Set just 1 action "Create Thumbnail Images" and save it. I called it "wf1.workflow".
    Now create the second workflow with 3 actions:
    "Get Specified Finder Items" action (choose an image file here).
    ->
    "Run Workflow" action (specify "wf1.workflow" as a workflow, select "Return workflow results", check "Wait for workflow to finish").
    ->
    "Copy Finder Items" (specify any location)
    Now run the workflow. Everytime I get an error.
    The log:
    Get Specified Finder Items completed;
    Run Workflow (wf1) completed;
    Copy Finder Items failed
    * -[NSAppleEventDescriptor count]: unrecognized selector sent to instance 0x113185d0
    The same workflow works fine in Tiger, so I think there is a bug in Leopard Automator.
    Am I right? Is there any workaround?

    I can confirm I got the same results for the workflow, just don't know why as of yet. And then I somehow got it to work.
    I checked the results for each action and they didn't seem unusual. The results of "Get Specified Finder Items" is a single parenthesized text string representing the file's path. The results of "Copy Finder Items" is an alias, but that should be okay.
    So, deleted the thumbnail from the first run, and then ran the workflow again. It got stuck on "Run Workflow" and hung for a while. So I stopped it and removed "Run Workflow", and then added it in again. Presto! It worked, sort of. It didn't copy the thumbnail, instead it copied the original file. I'd forgotten to reset it to "Return workflow results". So, it seems to be something to do with returning the workflow results instead of the action input.
    I'm going to do some more testing.

  • Automator: Copy Finder Items Question

    Hola,
    Quick question about the Copy Finder Items action in automator: the "replace existing files" option, how is sameness determined? In other words, according to what criteria does Automator determine that two files are the same, and so eligible for replacement in the destination folder when that option is chosen? For example, would file Mydog.doc, modified 10/14/05, 230k be viewed as the same thing as Mydog.doc., modifided 2/21/06, 150k?
    Cheers,
    stu

    As far as the Finder is concerned, the comparison is based on file name only.
    It doesn't care about file size or modification date. If the name is the same the existing file will be replaced.

  • Automator Copy Finder Items - file couldn't be saved error

    I have a simple automator sequence that suddenly stopped working for no apparent reason.  Copy Finder Items has started returning an error "the file xxx couldn't be saved to the folder yyy"  Happens for different files and folders. Can't see anythng that's changed.  Any ideas?

    I'm currently having the same issue, and have had it with mulitple automator scripts on multiple computers, but it's not fixing itseltf. Anyone know what this error could be?
    I've noticed that I get the above error most often after getting and then correcting  permissions errors in the same workflow. Any help would be most appreciated.
    Thanks!

  • Copy Finder Items

    I have a workflow that is reading images names & pathways from a text file, and copying the images in the text file into another folder. My problem is coming with the "Copy Finder Items" action. If I have the same image that I want copied into the folder, it will only copy it once. Actually, when I run the workflow, all of the images appear in the results section of the copy finder items. However, any duplicate images are not actually in the folder that it is copied to. Is there any way to correct for this, so that I can copy an image into a folder more than one time?
    Thanks

    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.

  • Pass input to Automator's "Ask for Finder Items"

    Hi,
    I have created an Applescript in Automator, which is  set up to determine a folder location where config files reside.
    I would like to pass this location to "Ask for Finder Items", so that the default config file is selected, but the user can select their own config file if they prefer.
    I can't see any way to reference my location variable in the "Ask for Finder Items" action.
    I've also tried to view the "Ask for Finder Items" sourcecode for a hint, but can't figure out how to do this either.
    Any help greatly would be greatly appreciated!
    Thanks,
    Dan

    Found this approach which is working for me:
    set config_file to choose file with prompt "Locate the config file and click OK" default location MYLOCATIONVARIABLE
    This opens the finder at the correct folder.

  • Automator Open Finder Items Won't Work in Plug-In

    I'm having another Automator problem in Leopard.
    This time I have a workflow that is intended to combine PDFs selected in Finder and open the resulting document in Preview. The steps are:
    1. Get Selected Items
    2. Combine PDF Pages, Combine by appending pages
    3. Open Finder Items, Open with Preview
    The workflow runs fine if I'm running it from within Automator. When I save it as a plug-in, the Open Finder Items portion doesn't work. If I turn on Show this Action, I get a dialog box with a dropdown list of programs with Preview already selected along with Cancel and Continue buttons. Clicking the Continue button does nothing.
    As a test, I tried removing the Combine PDF Pages step from the workflow and saving it as a plug-in. My expectation is that this version would simply open the items selected in Finder. Unfortunately, that didn't work either.
    Anyone have a clue for me?

    I'm having a similar problem. When running from within Automator everything is fin, but the plug in doesn't get the finder items. Oddly, I have ONE old workflow that takes the word "folder" away from a file name. That one works fine, but doesn't require any action once I select it. It doesn't even open the automator show action dialog window to make any changes. Weird how this one is still working and the other ones won't.

Maybe you are looking for