When I drop down the “Hook to New” menu, BusyCal is not listed. BusyContacts is listed. I see both programs on the script page? Did I screw it up somehow?
Thanks in advance
When I drop down the “Hook to New” menu, BusyCal is not listed. BusyContacts is listed. I see both programs on the script page? Did I screw it up somehow?
Thanks in advance
No one has any ideas? Would a reinstall of Hook fix the problem?
Thanks.
Looking at the scripts for BusyCal there is no inbuilt New Item script. You’d have to add one.
OK… thank you. I’ll see what I can do.
BusyCal has some applescript support, but it does not return the selected event via applescript. So we would still need to do UI Scripting.
BusyCal can create a new event, but does not return a URL which is needed to automate linking. We could do this via UI scripting (that’s what BusyContact’new script does). But UI Scripting is brittle. We can have a look, but the best course of action is for the Busy devs to return a URL.
Thank you for the explanation. I had a hunch there was a reason.
Here’s a New Item
script for Busy Cal. We’re sharing it here before uploading it to Hook’s integration server in case anyone wants to give it a whirl and give us some feedback.
tell application "BusyCal"
activate
open location "busycalevent://new/" & "$title"
end tell
delay 0.5
set startOfURL to "busycalevent://info/"
tell application "System Events"
tell process "BusyCal"
set the clipboard to ""
try
if enabled of menu item "Copy Event URL to Clipboard" of menu 1 of menu bar item "File" of menu bar 1 then
-- Item selected
click menu item "Copy Event URL to Clipboard" of menu 1 of menu bar item "File" of menu bar 1
set urlFound to false
repeat 10 times
set theURL to the clipboard
if theURL contains startOfURL then
set urlFound to true
exit repeat
else
-- Clipboard doesn't contain URL of selected item, so try getting clipboard again
delay 0.1
end if
end repeat
if urlFound then
return theURL
end if
end if
end try
if enabled of menu item "Copy Event URL to Clipboard" of menu 1 of menu bar item "Edit" of menu bar 1 then
-- Item selected
click menu item "Copy Event URL to Clipboard" of menu 1 of menu bar item "Edit" of menu bar 1
set urlFound to false
set theURL to ""
repeat 20 times
try
set theURL to the clipboard
end try
if theURL contains startOfURL then
set urlFound to true
exit repeat
else
-- Clipboard doesn't contain URL of selected item, so try getting clipboard again
delay 0.1
end if
end repeat
if urlFound then
get theURL
end if
end if
-- else item not selected
end tell
end tell
Thank you!
Thank you for doing this. It works for me with only one issue - this could be on BusyCal’s side and nothing you can do about it.
When I hook to a new event, the new event is created as an all-day event with a 9 am alarm.
If I uncheck the “all-day” option, the event falls back to my default start time of 9 am, as it should. But the alarm keeps the 9-hour differential that existed when it was an all-day event (i.e. Midnight to 9 am) - the event time changes to 9 am but the alarm is now “9 hours after” the event start time.
This may simply be the result of how I have the app configured for me. Thanks again for doing this.
Hi Luc,
Sorry to revive this old chat line. Which, after checking, is still the latest reference on the forum:
Thanks for having added Busycalc to the line.
The generic integrations lets me copy a link from out of BusyCal
Yet I noticed that the open item script is empty.
And sure enough, now clicking the link does only resume the App with the previously selected item.
That’s half the mission only. Did I miss out on anything?
Is the Hook integration version depended? My BusyCal version is Version 3.12.1.1
Sorry for the trouble.
Is your BusyCal from App Store or Setapp?
Do you mean clicking on the BusyCal link generated by “Link to New” does not select the right item?
Theoretically, the link generated by Link to New is a BusyCal recognizable link, so it does not need Open Item script.
Could you please paste the link that generated by “Link to New” here?
Thank you
thanks for responding.
Sorry this is confusing. For me it was about the “open item” action.
After trying the other day w/o avail i cannot reproduce the situation and today it works and I as you rightly say the generic link is a Busycal regognizable link.
… since you asked, I now did check the “create new” hook with cheerful success as well.
The only difference between now and then is that meanwhile I did disable Hook’s “Show current item’s number of hooks in menu bar icon” as this was causing problems with PdfExpert. Not sure whether there is a connection between both issues.
My version of Busycal
is purchased from their website and not in renewed since end of 2020 but still works to my needs so far.
The Hook link produced by the “new item” is
busycalevent://info/30CFC79E-5FB9-495E-A7F1-6E3AC6AA16DB+680184000
which worked as expected.
I am just mentioning all of this in case you drew more insight about some background issues from this than I.
Seems BusyCal is hooked again for now. Thank you