Jump to content

kraig85

Member
  • Posts

    12
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by kraig85

  1. On 8/25/2023 at 12:28 PM, Mark van Mullem said:

    Hi,

     

    I'm trying to use this workflow within Alfred, and i am able to make a draft email. However i am not able to search my Outlook folders.

    If i use the debug option it states:

     

    File "/Users/Mark/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.91329CD4-92F2-4663-86BF-C12EAF354D81/util.py", line 78, in getFolderData
        db = sqlite3.connect(OUTLOOK_DB_FILE)
    sqlite3.OperationalError: unable to open database file

     

    Also when i type OL it will then replace it with OLK and Alfred wants to search on the internet.

     

    Can someone help me out? 

    Hey,

    You need to do the following:

     

    Open the Workflow in Finder

    Replace the line in the consts.py document that says "/Users/giovanni/Desktop/Main Profile/Data/Outlook.sqlite" with your own path for your Outlook.sqlite file. (Try looking here: /Users/<username>/Library/Group Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main Profile/Data/Outlook.sqlite.
    Then run the outlook::refresh command from Alfred and it should say done.

     

    Hope it works.

     

    Ta-da!

     

    Craig

  2. On 11/22/2020 at 2:53 PM, Pinuz said:

     

    Thank you for trying to solve this :) Unfortunately, the bug is still there.

    Hi. Was a fix for this ever found? I'm having the same problem (using ultrawide monitor as main display) and I can't seem to find a fix for the panel being lower on the screen than the 'Alfred box' (I've tried searching, I promise 🙂 ).

     

    C

  3. Hi. Just to add...

     

    I have had this error message come up with every automation task in Alfred since I upgraded to the latest Ventura beta the other day. I've trawled Google for, what feels like days, and the only thing I can find is about the web inspector/Safari, and even though the error message mentions the web inspector, the issues that I and oorbx are having are not Safari/web-related (but feel free to correct me if I'm wrong). So it will be interesting to see how and when this is resolved by Apple, or if someone finds a workaround sooner. If I find out how to fix it, I'll let you know.

     

    Craig

  4. On 11/3/2022 at 2:58 AM, Tony D said:

    Did anyone get a script working in MacOS Ventura 13.0 yet?  

    ta-da!!

     

    do shell script "open -b com.apple.systempreferences /System/Library/PreferencePanes/Displays.prefPane"

    use AppleScript version "2.4"

    set iPadName to "iPad Pro"

    tell application "System Events"

              repeat until (exists window "Displays" of application process "System Settings")

                        delay 0.1

              end repeat

              tell process "System Settings"

                        tell pop up button 1 of group 1 of group 2 of splitter group 1 of group 1 of window "Displays"

                                  click

                                  delay 0.1

                                  tell (last menu item of menu 1 whose name contains iPadName)

                                            click it

                                 end tell

                        end tell

              end tell

    end tell

    tell application "System Settings" to quit

  5. On 10/10/2022 at 6:06 AM, TomBenz said:

    Thanks. This is working. How to integrate this with the overall code? The underlined line is giving error.

     

    do shell script "open -b com.apple.systempreferences /System/Library/PreferencePanes/Displays.prefPane"

     

    use AppleScript version "2.4"

    set iPadName to "iPad" -- TODO: Change to the name of your iPad

     

    tell application "System Events"

    tell process "System Preferences"

    delay 0.8

    click window "Displays"

    tell pop up button "Add Display" of window "Displays"

    click

    delay 0.1

    tell (last menu item of menu 1 whose name contains iPadName)

    click it

    end tell

    end tell

    end tell

    end tell

     

    tell application "System Settings" to close window 1

    As a temp work around (and hoping Vitor is right with the 'yet' part), I've used this script by placing the screen mirroring icon in the menu bar and copying from automator's watch me do - bearing in mind that my script has British English spellings of centre etc.)

     

    -- Click the “Screen Mirroring” menu bar item. set timeoutSeconds to 2.0 set uiScript to "click menu bar item 6 of menu bar 1 of application process \"Control Centre\"" my doWithTimeout(uiScript, timeoutSeconds) -- Click the “<fill in title>” tickbox. set timeoutSeconds to 2.0 set uiScript to "click checkbox 3 of scroll area 1 of group 1 of window \"Control Centre\" of application process \"Control Centre\"" my doWithTimeout(uiScript, timeoutSeconds) on doWithTimeout(uiScript, timeoutSeconds)     set endDate to (current date) + timeoutSeconds     repeat         try             run script "tell application \"System Events\"
    " & uiScript & "
    end tell"             exit repeat         on error errorMessage             if ((current date) > endDate) then                 error "Can not " & uiScript             end if         end try     end repeat end doWithTimeout

  6. On 10/7/2022 at 10:03 AM, TomBenz said:

    It doesn't work on Ventura. Anybody that can suggest a work around or script update? This is code where it is failing:

     

     

    tell application "System Settings"

    reveal pane id "com.apple.preference.displays"

    end tell

     

    Have you tried...

     

    do shell script "open -b com.apple.systempreferences /System/Library/PreferencePanes/Displays.prefPane" ?

×
×
  • Create New...