Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Moving to Tinderbox 6 >> Will Email to Tinderbox return?
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1401608098

Message started by Grant Lotter on Jun 1st, 2014, 3:34am

Title: Will Email to Tinderbox return?
Post by Grant Lotter on Jun 1st, 2014, 3:34am

Simplenote Premium is no more – for the moment it is no longer possible to sign up for  a premium account.

Since adding notes by email is a premium service new Simplenote users can no longer use Tinderbox's Simplenote synch to get email into Tinderbox – which is the suggested route since Email to Tinderbox was disabled:

http://www.acrobatfaq.com/atbref5/index/ImportExportFormatting/EmailtoTinderbox.html

So, will Email to Tinderbox return soon? It would be much appreciated!

Title: Re: Will Email to Tinderbox return?
Post by Mark Bernstein on Jun 1st, 2014, 10:25am

It's certainly possible, though it was very costly to support and my impression was that it was thinly used.

Title: Re: Will Email to Tinderbox return?
Post by J Fallows on Jun 1st, 2014, 11:11am

I can imagine that supporting an email function would be complex and thus would drop down the triage list.

Some counterpart that I would like to see is a way to get information into Tinderbox even when it is not running. Different programs have different ways to do that:
  • a "clip to" function, as in DevonThink or Evernote
  • a "mail to" function, as I often use in Evernote
  • anything else that brings TB nearer one of its functions as a universal inbox or collector of thoughts, data, research, etc that you come across when it's not running or when you are not at a computer.  
For now, my workaround is to catch stuff on the fly in Evernote, and later transfer it as appropriate to TB. I personally would welcome some clip to / mail to / otherwise capture function for TB itself.

Title: Re: Will Email to Tinderbox return?
Post by Grant Lotter on Jun 1st, 2014, 1:25pm

A `Clip Selection to Tinderbox' service was available -- created by Mark Anderson? It worked in TB 5, haven't tried it with v6 yet.

Title: Re: Will Email to Tinderbox return?
Post by Ted Goranson on Jun 1st, 2014, 3:09pm

I just today extended my SimpleNote premium account until mid 2016, FYI. This by the way includes Dropbox sync.

Watching from a distance the effort that Eastgate put into v6, I would not want them to elevate the mail capability from far down the list.

I do agree that some integration with external services would be handy, but I think everyone will have a different list of what and how.

The complexity may be mitigated by beefing up the autofetch capability. Any service should be able to publish to the web and be read from there. This would include TBx being able to strip out images and to reduce the html to TBx styles.

I suppose this is hard too, but is more likely to be universal.

Title: Re: Will Email to Tinderbox return?
Post by Mark Anderson on Jun 1st, 2014, 3:30pm

I truth, I haven't tied it.  If I recall I wrote it originally in a utility no longer compatible with current OS and then re-wqrite it in Apple's Automator. Ah here's the code:


Code:
on run {input}
     try
           tell application "System Events" to set activeApplication to bundle identifier of 1st process whose frontmost is true
           set the clipboard to input as Unicode text
           activate application "Tinderbox"
           if (count of documents of application "Tinderbox") is equal to 0 then
                 tell application "System Events"
                       tell process "Tinderbox"
                             -- no document so make new one
                             keystroke "n" using command down
                             -- short delay needed or paste action fires too soon
                             delay 0.25
                       end tell
                 end tell
           end if
           tell application "System Events"
                 tell process "Tinderbox"
                       tell window 1
                             -- in case target is a text window, send Cmd+Down-Arrow
                             -- in order to move cursor to end of $Text
                             -- (Note: has no effect in TB's major views)
                             key code 125 using command down
                             -- paste clipboard contents
                             keystroke "v" using command down
                       end tell
                 end tell
           end tell
           activate application id activeApplication
     on error errmsg
           --display dialog "Error while executing service:" & errmsg buttons {"Close"}
     end try
end run
Hm, the process calls TB to the front (I has a doc open already) but nothing is pasted in. I'll need to go look … looks like TB6 doesn't accept AppleScript commands.

So for now, my old clipping 'service' does work. Sorry!

Title: Re: Will Email to Tinderbox return?
Post by Grant Lotter on Jun 2nd, 2014, 1:12pm

@J Fallows:

One possibility that works is using the `Clip to Scrivener' service and then opening the resulting file in TBx (TBx 6 can now open Scrivener files!).

Still, any of these routes (Scrivener/Evernote/...) feels like a kludge.

Title: Re: Will Email to Tinderbox return?
Post by Simon Knight on Sep 17th, 2014, 6:06am

Mark,

Your comment "So for now, my old clipping 'service' does work. Sorry!" has confused me (not difficult I know!).  So is it possible to clip from say mail into Tinderbox 6 ?  If it involves the code you posted how should it be used?

Also is it correct that Tinderbox 6 does not respond to any Applescript ?  (I am unable to load a dictionary)?

Thanks
best wishes
Simon K

Title: Re: Will Email to Tinderbox return?
Post by Mark Anderson on Sep 17th, 2014, 6:30am

@Simon. I think the problem is solved: http://www.acrobatfaq.com/tbdemos/Clip_Selection_to_Tinderbox_v6.zip

The service of that name on my Mac seems to work (under OS 10.8.5 at least) and the date stamp of the linked file post-dates my last post in this thread.

As to how/why, I've no idea. Sorry, I'm in the middle of a dissertation right now and have no notes as to what I may have done to fix things back in june. However, I can see the code (copied via Automator) specifically calls 'Tinderbox Six'


Code:
on run {input}
     try
           tell application "System Events" to set activeApplication to bundle identifier of 1st process whose frontmost is true
           set the clipboard to input as Unicode text
           activate application "TinderboxSix"
           tell application "System Events"
                 tell process "TinderboxSix"
                       tell window 1
                             tell splitter group 1
                                   tell scroll area 1
                                         -- paste clipboard contents
                                         keystroke "v" using command down
                                         -- close the new note from title edit mode
                                         keystroke return
                                   end tell
                             end tell
                       end tell
                 end tell
           end tell
           activate application id activeApplication
     on error errmsg
           --display dialog "Error while executing service:" & errmsg buttons {"Close"}
     end try
end run

The service was seemingly made on 1 June 2014 and modified 9 June 2014 (the date the zip was uploaded). I hope that helps…

Title: Re: Will Email to Tinderbox return?
Post by J Fallows on Sep 17th, 2014, 3:49pm

Mark A, thanks so much for all the steps in explaining this.

I have run into an odd obstacle that I hope has an easy / "D'oh!"-type explanation. I cannot find a Services folder in the place suggested in your how-to sheet.

Here is what the how-to sheet says:


Quote:
Unpack the zip file and locate the file called 'Clip Selection to Tinderbox.service'.
copy or move this file to:     ~/Library/Services/

Or, in longer form the path is:

  /Users/[short name of user acc]/Library/Services/

If the 'Services' folder doesn't exist in your Library, add one.


Here is what the relevant part of my disk structure looks like. [Correction: for the moment I can't get a screenshot photo to post. What it shows is no Services folder in the places one would expect.] When I try to create a new Services folder in this hierarchy, it tells me that's forbidden, because that name is taken.

So obviously there *is* a services folder somewhere, (a) because the system tells me the name is chosen, and (b) because some services (for DevonThink, Scrivener, LastPass, etc) do come up properly now.

How can I force the Scripts folder to reveal itself, so I can copy your utility into it? I am sure the answer is obvious, but it's not yet obvious to me.

Here's the picture of how that part of my directory looks:


And a little more detail FWIW:

Title: Re: Will Email to Tinderbox return?
Post by Simon Knight on Sep 17th, 2014, 3:53pm

Thanks Mark,

I have it working - thank you.

Simon K

Title: Re: Will Email to Tinderbox return?
Post by Mark Bernstein on Sep 17th, 2014, 4:03pm

To find your Services folder:

1) In Finder, press and hold the OPTION key.

2) From the GO menu, select LIBRARY. (The Library folder is normally hidden).

3) Scroll down to the Services folder.

Title: Re: Will Email to Tinderbox return?
Post by J Fallows on Sep 17th, 2014, 4:45pm

Ahah!  Thanks for the tip!

(This does seems a Windows-type trick to pull, ie hiding certain folders unless you know to push the Option key. But I digress.)

Appreciate it.

Title: Re: Will Email to Tinderbox return?
Post by Mark Anderson on Sep 17th, 2014, 5:37pm

This sort of OS obfuscation can also be overcome by dragging the Library folder (once exposed in Finder) into the finder left sidebar where is becomes a shortcut as for Pictures, documents, etc. I guess it depends how often you use you Library.  :)

Title: Re: Will Email to Tinderbox return?
Post by J Fallows on Sep 17th, 2014, 6:12pm

Since you two Marks were so quick and helpful in clearing up this OS basic-knowledge issue for me, I'll try you on the next one too!

To get the Email-to-Tbox facility to work, I've tried to go to System Preferences/ Keyboard / Shortcuts, to place a check mark next to "Clip to Tinderbox."

This linked video shows what happens next. In essence (a) there are two listings for this feature, and (b) neither of them will accept a click for more than a nanosecond. Each time I click in the box, the click auto-erases almost instantly.

Video here:  https://www.dropbox.com/s/inbxoswgrsnrz6q/ServicesToggle.mov?dl=0

Does this ring any bell?  Thanks again for guidance.

Title: Re: Will Email to Tinderbox return?
Post by Mark Bernstein on Sep 17th, 2014, 8:00pm

To make your library folder more easily visible to Finder:

1. In Finder, open your Home folder

2. Choose SHOW VIEW OPTIONS from the View menu

3. Check "Show Library Folder"

Title: Re: Will Email to Tinderbox return?
Post by J Fallows on Sep 17th, 2014, 8:35pm

Thanks! These tricky "non-intuitive" Macs ....

Update  On a different computer, I went through the download-and-library routine, and ... it works! Can use Services to do a clip-to-Tinderbox action. Thanks!

Title: Re: Will Email to Tinderbox return?
Post by Mark Anderson on Sep 18th, 2014, 5:35am

In case there's anyone else still running on OS 10.8, the Finder option in MB's post (two up from here) is new to Mavericks (10.9). Doubtless Yosemite will change things again.

Title: Re: Will Email to Tinderbox return?
Post by David Bertenshaw on Sep 18th, 2014, 7:49am

In previous versions (pre-Mavericks), open the Terminal and type


Code:
chflags nohidden ~/Library


then press enter. Your Library folder will now be permanently visible.

It should take effect immediately, but if it doesn't, enter


Code:
killall Finder


to get the changes to take effect.

To revert to the hidden state, simple enter


Code:
chflags hidden ~/Library



In fact, I didn't know that there was a flag checkbox in View Options, so this is how I made the change in Mavericks, too....

Title: Re: Will Email to Tinderbox return?
Post by J Fallows on Sep 18th, 2014, 10:37am

Thanks to all. A hearteningly (in a sense) high proportion of my recent TB issues turn out to be aspects of the Mac OS I hadn't figured out in the past 6+ years.

Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.