Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Are you sure you want to open it?

 
   Macintosh computer (Home) -> General Discussion RSS
Next:  Nl+#d We're "Outing" The Snake Oil Guru..  
Author Message
Dale Stanbrough2

External


Since: Oct 25, 2003
Posts: 137



(Msg. 1) Posted: Sat Jul 05, 2008 6:05 am
Post subject: Are you sure you want to open it?
Archived from groups: comp>sys>mac>misc (more info?)

When a multifile HTML document is downloaded and opened every single
page opening (from the finder) results in the message

"XYZ.html" is a web application which was downloaded from the
Internet.
Are you sure you want to open it?


Is there anyway to mark such a group of files so that I don't
continually get the message?

Thanks,

Dale

--
dstanbro DeleteThis @spam.o.matic.bigpond.net.au

 >> Stay informed about: Are you sure you want to open it? 
Back to top
Login to vote
Chris Ridd

External


Since: Jun 24, 2004
Posts: 439



(Msg. 2) Posted: Sat Jul 05, 2008 7:46 am
Post subject: Re: Are you sure you want to open it? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-07-05 07:05:17 +0100, Dale Stanbrough <MrNoSpam.TakeThisOut@bigpoop.net.au> said:

> When a multifile HTML document is downloaded and opened every single
> page opening (from the finder) results in the message
>
> "XYZ.html" is a web application which was downloaded from the
> Internet.
> Are you sure you want to open it?
>
>
> Is there anyway to mark such a group of files so that I don't
> continually get the message?

This information is stored in some extended attributes on the files,
which you can look at (and delete) using the terminal.

Two extended attributes are used, but you only need to delete the second one:

com.apple.metadata:kMDItemWhereFroms
com.apple.quarantine

To delete the attribute, do:

xattr -d com.apple.quarantine <drag file to window here>

I took a screenshot of an Automator action that prompts for the files
to unquarantine, and calls the xattr program for you:

<http://img.skitch.com/20080705-8jae89iu6c4iqrxreb6unya9xm.png>

Cheers,

Chris

 >> Stay informed about: Are you sure you want to open it? 
Back to top
Login to vote
Dale Stanbrough2

External


Since: Oct 25, 2003
Posts: 137



(Msg. 3) Posted: Sat Jul 05, 2008 8:22 am
Post subject: Re: Are you sure you want to open it? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Chris Ridd wrote:


> This information is stored in some extended attributes on the files,
> which you can look at (and delete) using the terminal.
>
> Two extended attributes are used, but you only need to delete the second one:
>
> com.apple.metadata:kMDItemWhereFroms
> com.apple.quarantine
>
> To delete the attribute, do:
>
> xattr -d com.apple.quarantine <drag file to window here>
>
> I took a screenshot of an Automator action that prompts for the files
> to unquarantine, and calls the xattr program for you:
>
> <http://img.skitch.com/20080705-8jae89iu6c4iqrxreb6unya9xm.png>


Done! except I used "get selected finder items" and saved as a Finder
plugin

It seems to work ok, but initially the changes didn't seem to occur -
does it take some time for the changes to work through?

I can't imagine that being the case as it is simply flipping a bit (or
string) in the attribute description....


Dale

--
dstanbro DeleteThis @spam.o.matic.bigpond.net.au
 >> Stay informed about: Are you sure you want to open it? 
Back to top
Login to vote
Chris Ridd

External


Since: Jun 24, 2004
Posts: 439



(Msg. 4) Posted: Sat Jul 05, 2008 9:36 am
Post subject: Re: Are you sure you want to open it? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-07-05 09:22:16 +0100, Dale Stanbrough <MrNoSpam.DeleteThis@bigpoop.net.au> said:

> Chris Ridd wrote:
>
>> <http://img.skitch.com/20080705-8jae89iu6c4iqrxreb6unya9xm.png>
>
>
> Done! except I used "get selected finder items" and saved as a Finder
> plugin

Cool.

> It seems to work ok, but initially the changes didn't seem to occur -
> does it take some time for the changes to work through?
>
> I can't imagine that being the case as it is simply flipping a bit (or
> string) in the attribute description....

It worked immediately here, but maybe a Finder plugin gets run in the
background or something, so you try to open something before the
plugin's finished running?

Can you change the plugin to display a message when it is finished?

Cheers,

Chris
 >> Stay informed about: Are you sure you want to open it? 
Back to top
Login to vote
Dale Stanbrough2

External


Since: Oct 25, 2003
Posts: 137



(Msg. 5) Posted: Sat Jul 05, 2008 11:34 am
Post subject: Re: Are you sure you want to open it? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Chris Ridd wrote:

> It worked immediately here, but maybe a Finder plugin gets run in the
> background or something, so you try to open something before the
> plugin's finished running?
>
> Can you change the plugin to display a message when it is finished?

That's what it was. It takes quite a while to run on 427 files. I put a
growl notification at the end which is actually a nice touch.

Thanks,

Dale

--
dstanbro.RemoveThis@spam.o.matic.bigpond.net.au
 >> Stay informed about: Are you sure you want to open it? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Always open with... - I have another post regarding Word docs, and now I find that I have the same problem with .rtf I've specified to always open with AppleWorks but no luck, always opens with text edit. Any thoughts on how to handle this? Thanks Marty

Open Office - Has anybody tried open office for Mac 10.2?

Open firmware - Hi, all. Does anyone know what the earliest apple laptop series that supports booting from cd, has open firmware and is PPC - based is? I was considering putting Linux on my current powerbook, but it's turning out to be a hassle. Primarily, because it....

why can't I open .pkg files?? - I try to double click on a .pkg file and the "installer" utility opens. But that is it. Nothing happens. As far as I know, this is somewhat like a .exe file on PC. Please let me know if I am wrong. Trying to teach myself some stuff about ...

PDF Files won't open - Hi- I just updated to Adobe Reader 6, with OS 10.3.7 When I try to open pdf file, I get "An unexpected error occured (error code -10660). I'm guessing OS X hasn't been clued in about the updated software. How to fix it? Thanks Mike
   Macintosh computer (Home) -> General Discussion All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]