You are not logged in.

#1 2008-12-24 21:52:18

Mr. Steve
Member
Registered: 2008-12-19
Posts: 16

Possible to write a script for Opera?

I'm trying to get all flash videos in the cache moved to another directory... Is this possible with some sort of script?

Offline

#2 2008-12-25 09:15:49

zergu
Member
From: Poland
Registered: 2005-10-10
Posts: 28
Website

Re: Possible to write a script for Opera?

Hmmm… This one copies all files which have 'flash' (could by x-shockwave-flash) string in mime type to /tmp/flash. Hope it will be helpful.

for i in ~/.opera/cache4/* ; do file -i -F '' $i | grep flash | cut -d ' ' -f 1 | xargs cp -t /tmp/flash 2>/dev/null ; done

UPDATE:
Sorry, there was a little bug, I've just changed 'video' to 'flash' ('video' coundn't match 'x-shockwave-flash').

Last edited by zergu (2008-12-25 21:16:38)

Offline

#3 2008-12-25 09:22:58

Mr. Steve
Member
Registered: 2008-12-19
Posts: 16

Re: Possible to write a script for Opera?

I'll give it a try tonight. Thanks for the scipt!

Offline

Board footer

Powered by FluxBB