Jump to content

jhncbrwn

Member
  • Content Count

    13
  • Joined

  • Last visited

  1. Deanishe thanks for your answer. I have figured out that the variables don't work that way ? The problem is I don't understand what I need to do to make it work. Could you show me what I need to change in the workflow to make it work?
  2. I'm trying to insert a second variable into an AppleScript based workflow but I can't get it to work. This is the AppleScript part set MyDocument to "{query}" set MyText to "{var:text}" tell application "Pages" open MyDocument tell front document set body text to body text & return & MyText end tell close front document end tell The MyTask variable consistently gets appended as {var:text} rather than the actual text passed. Please see the workflow below Append to Pages.alfredworkflow Any advice would be appreciated
  3. If I understand you correctly this is already build into Safari. Press Command + 1 to go to tab 1, Command + 2 to go to tab 2 etc. I hope this helps.
  4. Hi Vero, Thanks for your quick reply. I have the script and I have the workflow, I'm trying to find out how to add the result of the workflow to the default results. At the moment I have to type OmniFocus: Forecast What I want to achieve is that I can start typing "For" and "Forecast" will show up in Alfreds default Results. In other words, can the result of a filter be included in the default results? I hope that this makes it clearer.
  5. I have a workflow to search and open OmniFocus perspectives. Instead of typing a keyword and then the perspective name I would like to just type the perspective name and have them show up in the default results. Is this currently possible?
  6. Hi Deanishe, Thanks for checking, any idea why it doesn't behave the way it should on my machine?
  7. If I run the script below in Applescript Editor when VLC is not running, nothing happens, this is the result that I expect. However when I run the same script as part of a workflow in Alfred, VLC Launches. Any suggestions as to why the result is different in the two applications and what I need to do to get the desired result in Alfred? --set q to "{query}" set q to 300 set vlcrunning to "" tell application "System Events" if (get name of processes) contains "VLC" then set vlcrunning to true end if end tell if vlcrunning is true then tell application "VLC" --set audio volume to 512 set audio volume to q end tell end if Thanks in advance for your help. Jhn
  8. Hi talibusorabat, Thanks for your workflow. You can also do this by setting up a hotkey under Alfred preferences > Features > File Search > Actions > File selection. It addition it would give you all the other file actions like "Copy to...", "Reveal in finder" etc. Regards, Jhn
  9. I'm trying to write a workflow that takes the selected items in Alfred and moves them to a preset folder. My applescript keeps giving me the error "Can’t get POSIX file" Any suggestions would be appreciated. set filelist to "{query}" set oldDelimiters to AppleScript's text item delimiters set AppleScript's text item delimiters to "\t" set theArray to every text item of filelist set AppleScript's text item delimiters to oldDelimiters tell application "Finder" repeat with eachitem in theArray set a to POSIX file eachitem set b to POSIX file "Macintosh HD/Users/USERNAME/Desktop/Temp" as text move a to b end repeat end tell
  10. Hi David, Thanks for your help. It took me another couple of hours but I got it to work! I posted the code below for anybody to use. set filelist to "{query}" set oldDelimiters to AppleScript's text item delimiters set AppleScript's text item delimiters to "\t" set theArray to every text item of filelist set AppleScript's text item delimiters to oldDelimiters tell application "Mail" activate tell (make new outgoing message at end of outgoing messages with properties {visible:true, subject:"Subject goes here", content:"Body goes here"}) make new to recipient at end of to recipients with properties {address:"Addres_goes_here@gmail.com"} repeat with eachitem in theArray set t to POSIX file eachitem make new attachment with properties {file name:t as alias} at after last paragraph end repeat end tell end tell
  11. I'm trying to make a workflow runs as a file action. It should take multiple files from the file buffer and attach them to an email, to be send to a predetermined address. I would really appreciate it if somebody could help me with the attachment part. This is what I have: set MyAttachments to the "{query}" tell application "Mail" activate set MyMessage to make new outgoing message with properties {subject:"Subject line goes here", content:"Body goes here", visible:true} tell MyMessage make new to recipient with properties {address:"Addres_goes_here@gmail.com"} repeat with EachAttachment in MyAttachments make new attachment with properties {file name:(EachAttachment as alias)} at after last paragraph of content end repeat save end tell end tell Thanks in advance for your help.
×
×
  • Create New...