Thursday, January 19, 2017
  • Index
  •  » Automator
  •  » Automator Script Deletes All Files Including Itself

#1 2015-11-05 12:46:49 am

Green Lantern
Member
Registered: 2015-11-04
Posts: 7

Automator Script Deletes All Files Including Itself

Greetings. I am very new to Automator and have created a script to delete a file, hall.wav, from my downloads folder. First I started with a "folder action". Dragged in "find finder items". Specified the folder to search as "Downloads". All of the following are true: Name is hall.wav. Then I dragged in "Move finder items to trash". The file sits in the Downloads folder and it deletes ANY file that is put into the folder. It deletes hall.wav but also any other file that is downloaded there. I had to delete it. It even deletes itself when I "put it back" from Trash. I have no clue what I am doing wrong. Obviously missing something! If anyone could help that would be great. GL

Model: iMac 2011
Browser: Opera 33
Operating System: Mac OS X (10.10)

Offline

 

#2 2015-11-05 01:09:44 am

Shane Stanley
Member
From: Australia
Registered: 2002-12-07
Posts: 4885

Re: Automator Script Deletes All Files Including Itself

Where you have Name is, do you have any other lines? Perhaps posting a link to a screenshot would help.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#3 2015-11-05 01:19:20 am

Green Lantern
Member
Registered: 2015-11-04
Posts: 7

Re: Automator Script Deletes All Files Including Itself

Hi Shane, Thanks for responding. I'd be happy to post a screen shot. I don't see an option to upload a file and I personally have no website where I post something that others can look at. Where would I put the screen shot so that others could see it?

To answer your question, the exact name of the file, hall.wav is given as the name. There are not other parameters. I figured the exact name is pretty precise.

GL

Offline

 

#4 2015-11-05 04:48:35 am

Shane Stanley
Member
From: Australia
Registered: 2002-12-07
Posts: 4885

Re: Automator Script Deletes All Files Including Itself

Search Google for "free photo hosting" -- there are plenty of options.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#5 2015-11-05 04:11:21 pm

Green Lantern
Member
Registered: 2015-11-04
Posts: 7

Re: Automator Script Deletes All Files Including Itself

Hello Shane,

Heres a link to the Automator page.

http://s20.postimg.org/xzm349hd9/screenshot_01.png

GL

Offline

 

#6 2015-11-05 05:03:15 pm

Shane Stanley
Member
From: Australia
Registered: 2002-12-07
Posts: 4885

Re: Automator Script Deletes All Files Including Itself

That looks OK to me, and I get the same problem when I build it here. I'm not sure what to suggest...


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#7 2015-11-06 01:49:18 am

Green Lantern
Member
Registered: 2015-11-04
Posts: 7

Re: Automator Script Deletes All Files Including Itself

Yes, strange indeed. I wonder if anyone else can make sense of it. GL

Offline

 

#8 2015-11-06 02:32:54 am

Shane Stanley
Member
From: Australia
Registered: 2002-12-07
Posts: 4885

Re: Automator Script Deletes All Files Including Itself

FWIW, I have confirmed that it is indeed a bug.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#9 2015-11-06 01:45:53 pm

Green Lantern
Member
Registered: 2015-11-04
Posts: 7

Re: Automator Script Deletes All Files Including Itself

Thanks Shane. Weird. Such a simple script. Who would have thought? GL

Offline

 

#10 2015-11-06 05:09:32 pm

Shane Stanley
Member
From: Australia
Registered: 2002-12-07
Posts: 4885

Re: Automator Script Deletes All Files Including Itself

Try replacing the Filter Finder items action with the Find Finder Items action.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#11 2015-11-07 12:36:39 am

Green Lantern
Member
Registered: 2015-11-04
Posts: 7

Re: Automator Script Deletes All Files Including Itself

Hi Shane,

The script I created IS done with the Find Finder Items action.

GL

Offline

 

#12 2015-11-07 01:11:27 am

Shane Stanley
Member
From: Australia
Registered: 2002-12-07
Posts: 4885

Re: Automator Script Deletes All Files Including Itself

Try vice-versa...


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#13 2015-11-07 01:21:05 am

Green Lantern
Member
Registered: 2015-11-04
Posts: 7

Re: Automator Script Deletes All Files Including Itself

Yes, that seems to be working now. Thanks. GL

Offline

 
  • Index
  •  » Automator
  •  » Automator Script Deletes All Files Including Itself

Board footer

Powered by FluxBB

[ Generated in 0.038 seconds, 10 queries executed ]

RSS (new topics) RSS (active topics)