Jump to content

RandmTask

Member
  • Posts

    29
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

RandmTask's Achievements

Member

Member (4/5)

1

Reputation

  1. Hi Im trying to search a PDF in the app Skim using Alfred: on run argv set theQuery to item 1 of argv tell application "Skim" activate open "/Users/username/Dropbox/xys.pdf" set foundText to find front document text theQuery select foundText with animation end tell end run This kind of works, it 'finds' one instance of the word and highlights it. However I would like it to 'search' for all instances of the word and show the results in the left hand side pane. Any ideas how to modify my applescript to achieve this?
  2. Thanks, yes that part I have working. I just want Alfred to recognise whenever i put in an email address without mailto: and go to my mail client. Its strange that the default behaviour is to open https://support@acme.com for an email address entered in to Alfred. ie support@acme.com
  3. Is there a way such that when I type: mailto:support@acme.com or support@acme.com With any email address, it automatically drafts an email from my gmail account? I set up a simple workflow for the mailto: keyword using Open URL to https://mail.google.com/mail/?view=cm&to={query} which works, but Im not sure how to change the default behaviour for any email address typed into Alfred, or how to implement it into a workflow Thanks for any guidance!
  4. Perfect. Thanks so much for your help!! Thats going to save me so much time
  5. Hi Stephen Sorry for the confusion. The 7 in test7 was not the page number, I was only trying to align with your use of the word test but had already used test for something else. So, lets say instead of test7 the keyword is openpdf and I wanted to open page 300: openpdf 300 The original script works: tell application "Preview" activate set theFile to POSIX file "~/Downloads/Fire.pdf" open theFile tell application "System Events" keystroke "g" using {command down, option down} delay 0.5 keystroke "300" keystroke return end tell end tell Updated code doesn't: set theQuery to item 1 of arg tell application "Preview" activate set theFile to POSIX file "~/Downloads/Fire.pdf" open theFile tell application "System Events" keystroke "g" using {command down, option down} delay 0.5 keystroke theQuery keystroke return end tell end tell This line seems to be the issue set theQuery to item 1 of arg As even if I keep keystroke "300" in the script it stops working
  6. Not sure what I am doing wrong then! If I remove the set theQuery to item 1 of arg and change the keystroke to a number ie "300" it works?
  7. Thanks Stephen I've tried both a simple keyword with an argument eg 'keyword 300' and a list filter to test it passing to the Run Script and it doesn't seem to work: I updated the code in a 'Run Script' module to: set theQuery to item 1 of arg tell application "Preview" activate set theFile to POSIX file "~/Downloads/Fire.pdf" open theFile tell application "System Events" keystroke "g" using {command down, option down} delay 0.5 keystroke theQuery keystroke return end tell end tell
  8. Hi I have a PDF and I would like to use Alfred to let me select which chapter or page I want to open the PDF to. I am using a Script Filter and have two issues: 1. When I press Enter on the search result it seems to do nothing. I have to use the right arrow and then hit Enter when I see 'Open' 2. Im not sure of the arguments to get it to open to a certain page. Here is the workflow cat << EOB {"items": [ { "uid": "image", "type": "file", "title": "Chapter 4", "subtitle": "Reinforcement Learning Page 20", "arg": "~/Dropbox/Fire.pdf", "autocomplete": "abc", "icon": { "type": "filetype", "path": "public.jpeg" } }, { "uid": "image", "type": "file", "title": "Chapter 6", "subtitle": "Reinforcement Learning Page 60", "arg": "~/Dropbox/Fire.pdf", "autocomplete": "xyz", "icon": { "type": "filetype", "path": "public.jpeg" } }, { "uid": "image", "type": "file", "title": "Chapter 10", "subtitle": "Reinforcement Learning Page 88", "arg": "~/Dropbox/Fire.pdf", "autocomplete": "asd", "icon": { "type": "filetype", "path": "public.jpeg" } }, ]} EOB I know I can open to a certain page (eg page 90) using AppleScript: tell application "Preview" activate set theFile to POSIX file "~/Dropbox/Fire.pdf" open theFile tell application "System Events" keystroke "g" using {command down, option down} delay 0.5 keystroke "90" keystroke return end tell end tell But not sure how to do it in my workflow I appreciate any guidance! Thanks
  9. Hi Im sure this is a simple question, but here goes, Im trying to use this applescript to open a PDF to a specific page in Preview eg. page 55: And I am getting this error: The file couldn't be opened because you don't have permission to view it. To view or change permissions, select the item in the Finder and choose File > Get Info. Permissions seem to be fine in Get Info however. And I can open the file normally in Alfred just fine using the "Open File" Ive tried other files with the same result. Any ideas?
  10. Feature request: Drag and drop an image (and possibly pasting) on to the Keyword Action to use that as an Icon Drag and drop an image on to the Workflow itself to use that as the Workflow Icon If I am duplicating a keyboard action, or saving it as a prefab, everything is replicated except for the icon, and I need to manually replace each of these. I would prefer to keep the images.
  11. Thanks Vitor. Changing from open-a to open -a fixed it and the files open in Tag Editor together as a group. Unfortunately. the Open File Action opened the files separately. FYI the Tag Editor app is https://apps.apple.com/us/app/tag-editor/id886882234?mt=12 Thanks again.
  12. Hopefully a simple question. I want to open a group of files all at once into an app. What I have tried previously just passes the files one by one and opens several instances of the app. I am trying to use Alfred to pass the selected Finder items to an app called 'Tag Editor.app'. Then I can tag all the files in the same window TIA for any assistance! Workflow
  13. Hi, Ive created a workflow that will allow you to highlight the selected text in Reddit while using Chrome and will copy the link and title to the clipboard. (Akin to the native Chrome Copy Link to Highlight feature, however Reddit blocks it) The workflow works well enough and it copies in Markdown formatting: [WEBPAGE_TITLE](url) What would be the best way to get it to paste as a hyperlink so when I paste it into TextEdit, Notes.app etc it appears as a hyperlinked Webpage title instead ie. WEBPAGE_TITLE? Any other feedback welcome as Im sure I haven't constructed this workflow very efficiently! https://www.dropbox.com/s/a0hbdc7vfvovv91/Reddit - Copy Highlight to Link.alfredworkflow?dl=1
×
×
  • Create New...