Drag Run AppleScript in as the second one, and paste in the following lines: For anyone who's interested, here's how I made it (based off of the code in the original hint):Ĭreate a new workflow in Automator and pick Get Selected Finder Items as the first action. But instead of having it as a folder action (which effectively obliterates the feature completely), I prefer it as an Automator Finder plug-in, which allows me to change the setting for an individual application that I've decided to keep. Next I need an automator action that will recurse a directory dropped on it and remove this flag so I can get on with my work when I download client files from a live server.Īlthough I like the warning when I open a program for the first time, if I've decided to keep it I don't want to be warned every time I try to open it thereafter, so I think this hint is great. For me, one more click per file I open actually matters, not to mention that this is a change from my prior workflow habits that I would have to get used to. I need to disable this feature in order to work quickly, sanely, and with the least abuse of my hands possible. Most of my work is in web application programming, and I'm not new to the internet (obviously) - I'm aware that things that come via the web are potentially dangerous. I'm going to find the disabling of this feature a definite time-saver. I could run them in Apache localhost (only because I've gone through the trouble to enable a MAMP stack on localhost), and I'll bet they execute without warning. php files in SubEthaEdit, and this warning comes up. Example: I download ZenCart, expand it, look at some of the. php is a potential executable but not when I'm trying to open it in a text editor. (You can read the original version of this post on my blog.) If you download a file to a directory without this folder action attached, Leopard is free to nag again. Note that, quite obviously, the folder action only applies to that folder. Check Enable Folder Actions, then Attach the Unquarantine script you saved earlier0 to the folder. Control-click on the folder in question, then select More » Configure Folder Actions. Now navigate to ~/Downloads, or wherever your downloads go. (*"Unquarantine" by Henrik Nyh This Folder Action handler is triggered whenever items are added to the attached folder.It gets rid of Leopard's annoying "this application was downloaded from the Internet" warnings by stripping the "quarantine" property.*)on adding folder items to thisFolder after receiving addedItems repeat with anItem in addedItems set anItem's contents to (quoted form of POSIX path of (anItem as alias)) end repeat set AppleScript's text item delimiters to " " do shell script "xattr -d " & (addedItems as text) end adding folder items to
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |