|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Finder Get Info equivalent in Terminal?Hi,
When I download a file I can get its download url in the get info dialog in Finder. Where is this info stored? How can I get at it via the command line? Also Finder warns me when I launch a downloaded file the first time I try but not afterwards. Where is this kind of info stored? And again how is it accessible via command line? No particular reason to ask, just want to know.... Thanks and have fun ---markus--- _______________________________________________ MacOSX-admin mailing list MacOSX-admin@... http://www.omnigroup.com/mailman/listinfo/macosx-admin |
|
|
Re: Finder Get Info equivalent in Terminal?On 27 May 2009, at 07:10, Markus Ruggiero wrote:
> When I download a file I can get its download url in the get info > dialog in Finder. Where is this info stored? How can I get at it via > the command line? Depends what info in the Get Info dialog you want! 'ls -l' will show you basic file info, such as modified date file size and UNIX permissions. 'ls -le' will show you the above, plus any file ACLs. 'mdls' will show you the metadata, which tell you a bit more, and largely depends on the type of file - e.g. for a Word document it shows the author, for JPEG it shows the image size, and so on. > Also Finder warns me when I launch a downloaded file the first time > I try but not afterwards. Where is this kind of info stored? And > again how is it accessible via command line? This can be seen using the 'ls -l@' command, which shows the file's extended attributes. When a file is downloaded by Safari or Mail [don't know of any other apps that do it] it gets an extended attribute called com.apple.quarantine. After you first open the file, OS X [I guess specifically LaunchServices] removes the attribute. _______________________________________________ MacOSX-admin mailing list MacOSX-admin@... http://www.omnigroup.com/mailman/listinfo/macosx-admin |
|
|
Re: Finder Get Info equivalent in Terminal?On May 26, 2009, at 23:25 , Derek Chesterfield wrote: > On 27 May 2009, at 07:10, Markus Ruggiero wrote: [snip] >> Also Finder warns me when I launch a downloaded file the first time >> I try but not afterwards. Where is this kind of info stored? And >> again how is it accessible via command line? > > This can be seen using the 'ls -l@' command, which shows the file's > extended attributes. When a file is downloaded by Safari or Mail > [don't know of any other apps that do it] it gets an extended > attribute called com.apple.quarantine. After you first open the > file, OS X [I guess specifically LaunchServices] removes the > attribute. The command 'ls -l@' shows you the extended attributes and their lengths. To see their content, try 'xattr -l' (try 'xattr -h' for details). I don't think 'ls' can display (extended) attribute contents HTH Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income -------- When LuteFisk is outlawed, Only outlaws will have LuteFisk -------- _______________________________________________ MacOSX-admin mailing list MacOSX-admin@... http://www.omnigroup.com/mailman/listinfo/macosx-admin |
|
|
Re: Finder Get Info equivalent in Terminal?On 27-May-2009, at 00:10, Markus Ruggiero wrote:
> When I download a file I can get its download url in the get info > dialog in Finder. You can? You do? where? How are you downloading them? This USED to be the behavior ages ago, but I havne't seen it in OS X. -- My biggest problem is that Steve insists on serving PURPLE Kool Aid, an I don't like PURPLE <sip sip> Kool Aid. _______________________________________________ MacOSX-admin mailing list MacOSX-admin@... http://www.omnigroup.com/mailman/listinfo/macosx-admin |
|
|
Re: Finder Get Info equivalent in Terminal?In Get Info under More Info. It's been around since Safari 2 if I
recall? Obviously if you are using Firefox or an alternative browser you wouldn't necessarily have this information, as I don't think Firefox provides the same functionality. On May 27, 2009, at 4:49 PM, LuKreme wrote: >> When I download a file I can get its download url in the get info >> dialog in Finder. > > > You can? You do? where? > > How are you downloading them? _______________________________________________ MacOSX-admin mailing list MacOSX-admin@... http://www.omnigroup.com/mailman/listinfo/macosx-admin |
|
|
Re: Finder Get Info equivalent in Terminal?> This USED to be the behavior ages ago, but I havne't seen it in OS X.
It returned in some update or other, can't remember for sure, but I think it was in the 10.4 time frame. -- Scott Ribe scott_ribe@... http://www.killerbytes.com/ (303) 722-0567 voice _______________________________________________ MacOSX-admin mailing list MacOSX-admin@... http://www.omnigroup.com/mailman/listinfo/macosx-admin |
| Free embeddable forum powered by Nabble | Forum Help |