Page 1 of 1

File actions question?

PostPosted: Tue Sep 18, 2007 4:17 am
by filemaker2845
Hi,

I need a file to open automaically when the folder is opened.
Eg: a folder has 3 files a b c ni it but when it opens i want b to open automatically. i know it has to be done with folder actions but i dont kniw any scripts???

PostPosted: Tue Sep 18, 2007 5:56 am
by John Sindelar
Hopefully someone else can chime in here: folder actions and AppleScript just aren't my thing.

PostPosted: Tue Sep 18, 2007 10:15 am
by filemaker2845
man....

Update

PostPosted: Fri Oct 26, 2007 3:32 pm
by Court Bowman
This sounded like an interesting problem.

Did you ever find a good way to do this? Let us know if you came up with any solutions...

PostPosted: Tue Oct 30, 2007 3:12 pm
by Tim Anderson
This might get you part way, I have tried and although Folder Actions (according to the Help) are supposed to act when you open a folder, I can't get it to do that. Works when moving folder or adding to it (OSX 10.4.10)
4 Automator Script steps
1. Get Specified Finder Items - select your folder
2. Get Folder Contents
3. Filter Finder Items - Set your criteria eg Name begins with
4. Open Finder Items

Then Save As Plug-in, Plug-in for Folder Action and select your folder.

If you find out how to trigger on open post it here for us all.

Good luck!
Tim

PostPosted: Wed Oct 31, 2007 6:08 am
by filemaker2845
thanks for the idea but i guess i dont i dont know how to implement it for my folder, i get errors.

PostPosted: Wed Oct 31, 2007 6:42 am
by Tim Anderson
What errors are you getting? Have you managed to attach the script to your folder? [/img]

PostPosted: Wed Oct 31, 2007 7:10 am
by filemaker2845
well am i supposed to place them in workfloes or script editor??
Could you please rewrite the code using a folder called 1 and opening the file a please??

Thanks a lot

PostPosted: Wed Oct 31, 2007 7:41 am
by Tim Anderson
Ok, screen shots from Automator for you at the link below

http://homepage.mac.com/tima1/[/img]

PostPosted: Wed Oct 31, 2007 7:42 am
by Tim Anderson
Oops, try that url again

http://homepage.mac.com/tima1/

PostPosted: Wed Oct 31, 2007 7:44 am
by filemaker2845
Thanks a bunch...ill see if i can see why it doesnt work the other way and inform you

PostPosted: Wed Oct 31, 2007 8:29 am
by Tim Anderson
Have also put up the Automator workflow for you - you'll obviously need to remove the folder in the first step and add your own folder - if you are not familiar with Automator just use the + and - in the bottom left of the step.

Thanks

PostPosted: Wed Nov 07, 2007 9:07 am
by Court Bowman
Tim,

I just wanted to add a thanks for doing this.

Automator is often overlooked since it is not cross platform, but you can do some powerful things with it.