Skip to main content
11 events
when toggle format what by license comment
Jan 8, 2021 at 15:51 comment added nohillside @RakibFiha -f basically tests for existance of a file, things like Firefox.app are always directories. Using -r works, as would -e.
Jan 8, 2021 at 15:02 comment added nohillside @RakibFiha I've changed the condition in the if, -f is always false for applications.
S Jan 8, 2021 at 15:02 history edited nohillside CC BY-SA 4.0
Added a small script for OP following the original answer
S Jan 8, 2021 at 15:02 history suggested Rakib Fiha CC BY-SA 4.0
Added a small script for OP following the original answer
Jan 8, 2021 at 13:40 review Suggested edits
S Jan 8, 2021 at 15:02
S Jan 8, 2021 at 13:35 history edited nohillside CC BY-SA 4.0
Added example
S Jan 8, 2021 at 13:35 history suggested sunknudsen CC BY-SA 4.0
Added example
Jan 8, 2021 at 13:31 comment added Rakib Fiha Brilliant indeed, so you can just add something like: osascript <<EOF set aFile to (POSIX file "$FILE") as alias tell application "Finder" to open information window of aFile EOF in your dotfiles
Jan 8, 2021 at 13:27 vote accept sunknudsen
Jan 8, 2021 at 13:27 review Suggested edits
S Jan 8, 2021 at 13:35
Jan 8, 2021 at 12:34 history answered benwiggy CC BY-SA 4.0