billearl's Posts[Home]

Who What
billearl
12 Oct 2017, 03:29
Re: FP breaks Finder's right-click contextual menu in Sierra?
turly wrote:I'll be frank here - I've booted up my Mac maybe seven or eight times in the last year. For various arcane reasons, the FinderPop build system won't work on "newer" systems, so my Mac is still running 10.9, but can boot up into 10.10 and later from external disks, which is how I test FP .. a not-very-streamlined development process. Of course, FP works perfectly in 10.9 so I'm happy there. In addition, I am spending less time in front of a computer these days, and all of that time is in Windows or Linux. I got tired of battling Apple who quite obviously don't want this kind of "invasive" program on their systems and make it a PITA to install even if I, the owner of the computer, want it.

Now I'm not saying I'll never fix these FP/Sierra issues, but it's down the list of stuff I'd like to get done.


Thanks, Turly. I'll be frank here too. Two beer (at least) to you if you solve the $*&%$@# with High Sierra, etc. Glad you've moved on though, but I do miss FinderPop. Best of luck with the higher priority stuff, including the Catalan dilemma.
billearl
23 Nov 2015, 20:34
operating on Finder selections
My use of FinderPop has been exclusively for operating on Finder selections (first attachment). In El Capitan, I can do all the same operations using Automator workflows as Services, but it looks ugly (second attachment) and is not as convenient as using FinderPop.

If El Capitan Services can do this with SIP enabled, can FinderPop be made to also do this with SIP enabled? I suspect not, but thought I'd ask, since my use is only a small subset of FinderPop's capabilities. The new FP menulet doesn't show anything in my setup.
Attachments
FinderPop Items.png
FinderPop Items.png (100.31 KiB) Viewed 1475 times
ElCap contextual menu.png
ElCap contextual menu.png (129.66 KiB) Viewed 1475 times
billearl
 
Posts: 21
Joined: 20 Sep 2011, 04:25

Re: operating on Finder selections

Postby turly » 23 Nov 2015, 21:12

Hey Bill,

As you say, you're only using the "operate on Finder selection" side of FinderPop -- and all your FinderPop Items end in "---f" (meaning "only show this when there's a selection", which doesn't apply to menubar-clicks -- which is what the menulet is, to all intents and purposes, and so clicking in the menulet won't show anything.)

You seem to be looking for FinderPop to "tidy up" that contextual menu? Unfortunately the answer is "no", I'd have to patch the services code which would be a no-no when SIP is enabled. FP would also have no access to the Finder's contextual menu when SIP is enabled.

Apple should probably allow setting of icons etc for Services menu entries, then maybe it wouldn't look quite so clunky...

Sorry!
billearl
11 Oct 2015, 23:16
Re: SIP disabled but FP not working
Have you tried the "might work on el capitan" version, which bumps the version check?

viewtopic.php?f=3&t=327&start=10#p1500
billearl
07 May 2014, 17:59
Re: Alphabetically, yes but...
Just add 01), 02), etc. to the start of the file or folder name to set their sort order. The prefixes don't appear in the FinderPop menu. It's in the "manual".
billearl
27 Nov 2013, 18:20
Re: Hide folder icon for FinderPop submenus
Great! Thanks, turly.
billearl
24 Oct 2013, 06:54
Re: FinderPop 2.5.1
turly wrote:FinderPop 2.5.1 (tagged "Ralph the Wonder Llama") is now available.

Edit 20131023: removed 'Beta' designation as seems to work fine on Mavericks... enjoy!


It does for me, and I will enjoy. Thanks once again, Turly.

Bill
billearl
31 Jul 2013, 18:12
Hide folder icon for FinderPop submenus
At the moment, I don't believe there is a way to hide the folder icon but retain a submenu. "---x" hides the icon but kills the submenu. In using FP to run scripts via a submenu, the folder icon does not belong. A minor improvement, but it would be appreciated.
billearl
30 Jul 2013, 19:17
Re: FinderPop 2.4.9 not working in Lion
Thanks, Turly. That fixed the problem (including escaping of apostrophes).

I tested it in Lion and Mavericks. Probably of little consequence at the moment, but in Mavericks, the FinderPop scripts do not appear when a folder is selected on the Desktop (also the case with FP 2.4.9, but I just discovered it now).
billearl
29 Jul 2013, 21:25
Re: FinderPop 2.4.9 not working in Lion
FinderPop 2.4.9 scripts also do not work in Mountain Lion (10.8.4).
billearl
26 Jul 2013, 02:37
Re: FinderPop 2.4.9 not working in Lion
On further testing, FP 2.4.7 works, but FP 2.4.8 does not, so it's probably related to a change in 2.4.8. Maybe "Fix bug in escaping pathnames passed to shell when running scripts"?

As you're probably aware, FinderPop 2.4.7 (and prior) failed silently when trying to pass a pathname containing an apostrophe (ascii 39). FP 2.4.8 and 2.4.9 fail silently with ALL pathnames, not just ones containing apostrophes.

So I'll use FP 2.4.7 for now.
billearl
24 Jul 2013, 18:26
FinderPop 2.4.9 not working in Lion
Sorry for reporting this after release of FP 2.4.9, but it appears AppleScript scripts which are intended to operate on the Finder selection do not work in Lion. Nothing happens when one is selected.

They do work in Mavericks (have not tested Mountain Lion). Reverting to FP 2.4.6 fixed the problem in Lion.
billearl
27 May 2013, 17:00
Re: FP 2.4.6 stopped working for good in 10.8.2
Sounds a bit like a problem I once had. Make sure "Folder Actions Setup" Service is enabled in the "Keyboard" System Preferences.
billearl
24 Apr 2012, 17:35
Re: FinderPop 2.4.2 beta
Thanks, Turly. That was it. I either forgot or didn't know Folder Actions Setup was required. That probably explains another problem I was having too.
billearl
23 Apr 2012, 07:42
Re: FinderPop 2.4.2 beta
Hi Turly. Thanks for continuing development of FinderPop, which I use daily.

A problem that started a while ago is that ---f (or -!!f) no longer works. Even with an item selected in the Finder, the FinderPop item does not appear in the contextual menu. I think this problem may have started when I updated to the OS X 10.7.4 beta, but it persists with FinderPop 2.4.2 beta. Any thoughts?
billearl
08 Oct 2011, 22:17
Re: Pass Finder selection to AppleScript?
turly wrote:Fixed in 2.4.1

Wow! Thanks a million (er, a pint), Turly! :D
billearl
08 Oct 2011, 21:56
Re: FinderPop 2.4 Suggestions & Bug Reports
Now that FinderPop 2.4.1 allows it, here is the all-AppleScript version.

The main AppleScript script at ~/Documents/Scripts/FinderPop CMMs.scpt:
Code:
-- called from FinderPop Items AppleScript scripts: "HFS", "POSIX", "Make Alias on Desktop", "Make Symlink",
--        "Hide-Show File Extension", "Mod Date > Creation Date"
-- NB: The selection path must not contain a plain apostrophe ('). A curly single quote (’) is okay.

on run {selectedItems, action} -- in selectedItems, folder paths (POSIX) do not end with "/"
   set aliasList to {}
   repeat with eachItem in selectedItems
      set end of aliasList to POSIX file eachItem as alias
   end repeat
   
   if action is in {"hfsPath", "posixPath"} then
      set s to ""
      repeat with eachItem in aliasList -- an alias list, so folder paths will end with ":" or "/"
         if action is "posixPath" then set eachItem to POSIX path of (eachItem as text)
         set s to s & (eachItem as text) & return
      end repeat
      set the clipboard to text 1 thru -2 of s
   else if action is "makeAlias" then
      tell application "Finder" to make alias at (path to desktop folder) to every item in aliasList
   else if action is "makeSym" then
      repeat with eachItem in selectedItems
         do shell script "ln -s " & quoted form of eachItem & " " & quoted form of (eachItem & ".sym")
      end repeat
   else if action is in {"hideShow", "modDate"} then
      tell application "Finder" to repeat with eachItem in aliasList
         if action is "hideShow" then set extension hidden of eachItem to not (extension hidden of eachItem)
         if action is "modDate" then set modification date of eachItem to creation date of eachItem
      end repeat
   end if
end run

In my FinderPop Items folder, HFS and POSIX are in a "Copy Path..." sub-folder.
A typical AppleScript script (HFS.scpt in this example) in my FinderPop Items folder:
Code:
on run selectedItems
   run script file ((path to documents folder as text) & "Scripts:FinderPop CMMs.scpt") with parameters {selectedItems, "hfsPath"}
end run

For "Open With..." items, I now use FinderPop's built-in method as described in my previous post.
billearl
05 Oct 2011, 19:11
Re: Lost Factory Feature
Contextual menus are invoked by control-click or right-click. Closing the parent folder is done by option-doubleclick. In no case should it be necessary to press both control and option keys simultaneously.
billearl
04 Oct 2011, 06:35
Pass Finder selection to AppleScript?
From the manual, "If you select a compiled AppleScript file (i.e., a file ending in '.scpt'), FinderPop will execute the script. Note however that FinderPop does not currently pass the [Finder] selection to the Applescript."

Since you say, "does not currently", does that mean you are considering adding this functionality? If so, I hope you can and will do that. If not, shell scripts work well for this, but I would prefer doing it all via AppleScript.
billearl
24 Sep 2011, 19:43
Re: FinderPop 2.4 Suggestions & Bug Reports
turly wrote:If you've got useful shell scripts, feel free to post 'em!

I'm really weak in shell scripts, and stronger in AppleScript, so my commands are in an AppleScript script (at ~/Documents/Scripts/FinderPop CMMs.scpt):
Code:
-- called from FinderPop Items shell scripts: "HFS", "POSIX", "Make Alias on Desktop", "Make Symlink",
--        "Hide-Show File Extension", "Mod Date > Creation Date", "Script Debugger", "FileXaminer"
-- NB: This script will not function properly if the selection path contains a plain apostrophe ('),
--        because it is a special character in shell scripting. A curly single quote (’) is okay.

on run {selectedItems, action} -- in selectedItems, folder paths (POSIX) do not end with "/"
   set hfsList to {}
   repeat with i from 1 to (count of paragraphs in selectedItems)
      set end of hfsList to POSIX file (paragraph i of selectedItems) as alias
   end repeat
   
   if action is in {"hfsPath", "posixPath"} then
      set s to ""
      repeat with eachItem in hfsList -- an alias list, so folder paths will end with ":" or "/"
         if action is "posixPath" then set eachItem to POSIX path of (eachItem as text)
         set s to s & (eachItem as text) & return
      end repeat
      set the clipboard to text 1 thru -2 of s
   else if action is "makeAlias" then
      tell application "Finder" to make alias at (path to desktop folder) to every item in hfsList
   else if action is "makeSym" then
      repeat with eachItem in (paragraphs of selectedItems) as list
         do shell script "ln -s " & quoted form of eachItem & " " & quoted form of (eachItem & ".sym")
      end repeat
   else if action is "hideShow" then
      tell application "Finder" to repeat with eachItem in hfsList
         set extension hidden of eachItem to not (extension hidden of eachItem)
      end repeat
   else if action is "modDate" then
      tell application "Finder" to repeat with eachItem in hfsList
         set modification date of eachItem to creation date of eachItem
      end repeat
   else if action is in {"com.latenightsw.ScriptDebugger", "com.gideonsoftworks.filexaminer"} then
      tell application "Finder" to open every item in hfsList using application file id action
   end if
end run

In my FinderPop Items folder, HFS and POSIX are in "Copy Path..." sub-folder, and Script Debugger and FileXaminer are in "Open With..." sub-folder. A typical shell script in my FinderPop Items folder:
Code:
#!/bin/sh

IFS="
"
osascript ~/Documents/Scripts/FinderPop CMMs.scpt "$*" hfsPath &

An alternative way to do "Make Symlink" via shell script only (thanks to Turly's sample shell script):
Code:
#!/bin/sh

while [ $# -gt 0 ]; do
    ln -s "$1" "$1".sym
   shift
done

A better way to do "Open With..." is to use FinderPop's built-in method instead of the above method. The "Open With..." folder in my FinderPop Items folder now contains application alias files (e.g. Script Debugger, FileXaminer). From the manual, "If there is a Finder selection and you've chosen an application from the FinderPop menu, FP will ask the app you chose from the menu to open the Finder selection."

turly wrote:BTW - append '---x' (that's minus-minus-minus-x) to your extension and no icon will be displayed. It's in the manual somewhere :)

Thanks. Yes, I should have read the manual more carefully :oops: . That works great for files, but for folders, it kills the submenu as well as the icon, so I have to leave the folder icons in.
billearl
24 Sep 2011, 04:12
Re: FinderPop 2.4 Suggestions & Bug Reports
I must say, I love this feature: "If you select a Unix shell script file (for now, files whose name ends in '.sh') the script will be executed. Any Finder selection is passed to the script as standard text arguments." I've been looking for this behaviour for years. Great for operating on selected files in the Finder, such as copy path, make symlink, hide-show file extension, open with, etc. Works perfectly, just like native contextual commands like Get Info, Make Alias, etc.

I've been using AppleScript (e.g. Services) for this sort of thing, but Finder icons had to be "blue" selected (which often required a left click to activate the Finder window containing the files before the right click) rather than "gray" selected (one right click from anywhere).

BTW, this is why I requested an option to not display icons. Icons are kind of meaningless for commands like these.

EDIT: It turns out that Services do this correctly if the AppleScripts are written correctly :oops: , but not previous methods I tried. However, FinderPop is vastly superior to Services for organizing contextual menus.
billearl
20 Sep 2011, 04:54
FinderPop 2.4 Suggestions & Bug Reports
Hi, Turly. Thanks for FinderPop 2.4. It's amazingly useful. Here are a few findings to consider for an update.
If any of my suggestions are already implemented and I just missed that, please let me know.

Suggestions (maybe this should be in the Wish List forum):
1. An option to add FinderPop items to the bottom of the contextual menu instead of the top.
2. For folders in the FinderPop Items folder, an option to only allow items contained in those folders to be opened, not the folders themselves.
3. An option to not display any icons (neither generic or custom) in the contextual menu.

Possible Bugs:
1. The "Squeeze Menus" checkbox does not appear to have any effect.
2. The tooltip text for the "Aliases in Italic" is incorrect.