Jump to content

mikedvzo

Member
  • Posts

    212
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by mikedvzo

  1. This occurs because entries are added with different formats in Mac OS Contacts and the iPhone adds them differently also. I use the following format all the time now which requires me to enter all entries with my MAC or at least modify them after the fact. Here is the format I use +1 555 555 1212. You can use the two scripts to alter all of you address book contacts at once. The first one removes spaces and the second one adds a +1 if it does not exist. http://bit.ly/1jjgNqm
  2. Maybe I was not clear I have no problem getting this to work in NSAppleScript the problem is getting the code to run in /usr/bin/oascript. The following code does not run work in oascript. tell application "Terminal" do script "{query}" in selected tab of the front window end tell
  3. I have a workflow that works fine with NSApplescript however I prefer to run scripts in the background with /usr/bin/oascript. I often have difficulty passion the arguments to Alfred with oascript. Here is a section of a workflow that I cannot get to work with oascript. I have tried all types of escape sequences but none work. The script runs find in AS editor. on alfred_script(q) tell application "Terminal" do script q in selected tab of the front window end tell end alfred_script tell application "Terminal" do script "{query}" in selected tab of the front window end tell
  4. I am assuming the workflow you posted does not take into account that the LDAP server requires login credentials before begin queried? I would be surprised if it did not. Any ideas on how to possibly query a keychain string for the password.
  5. Thanks that did it and sorry for posting in the wrong place
  6. I have an application script that I stored in ~/bin and it is also in my Dropbox folder ~/Dropbox/Backup via a Symbolic link to the ~/bin directory. It is there in order to keep a backup of the files on dropbox. When I search in Spotlight it only returns the application in ~/bin. However Alfred returns both. I have the ~/Dropbox/Backup in Spotlight preferences under Privacy. Wonderign why Alfred is showing both in the results. I don't remember it doing this in the past.
  7. FYI - I ran into issues with 10.9 and not begin able to use AS with the "click" command. There appears to be a bug in all the Apple apps in Mavericks if you use the "click" AS command it returns an error even though it still works. However this causes the script to stop execution. I had to rewrite numerous command replacing the convenient click command with lengthy "key code" commands which are far less reliable and more complicated.
  8. Has anyone else confirmed this behavior.
  9. Solution after much time!!! sed -n '/'"$1"'/,$p' ( Use ' " Variable " ' with no spaces in this order - will not work in Alfred with only ' or " quotes)
  10. Still have not fixed it but have figure out what the issue is. The following Sed command does not work in Alfred and causes $URL to be set to null. sed -n '/'$1'/,$p' This is suppose to look for the wrist occurrence of an argument and capture everything after that argument. Works fine in terminal just no int Alfred.
  11. Here is a copy of the Workflow. I tried test for only a single variable like "test2" and that does not work either. Very frustrating since I know I have down this before in Alfred 1 so must be missing something stupid. http://cl.ly/0p2I1y213p45
  12. I have also tried just placing the terminal version in the workflow directory and calling it but it still does not work with the argument. /bin/bash webex_join.sh {query}
  13. I am trying to passing an argument from Alfred to a bash script run directly in Alfred. The script below works as intended if I run it in terminal. I also have run it in Alfred but have to manually setting the value of $STR to test2. If I set the value of STR in the script then the if statement runs as intended. If I comment out the variable with #STR the else statement runs as intended. How do I set the value of STR in alfred from the argument to Alfred. I have tried many iterations of {query} but none seem to work. Here is the Alfed version #!/bin/bash STR=test2 if [[ -n "$STR" ]] then URL=`/usr/local/bin/icalBuddy -ic B48EAE40-D366-4E90-9C8F-D828E9472FD1 eventsNow | sed -n '/'$STR'/,$p' | grep -m 1 "https" | sed 's|.*[ |>]*https\(.*\)[ |>]*|https\1|'` else URL=`/usr/local/bin/icalBuddy -ic B48EAE40-D366-4E90-9C8F-D828E9472FD1 eventsNow | grep -m 1 "https" | sed 's|.*[ |>]*https\(.*\)[ |>]*|https\1|'` fi if [[ $URL == https* ]]; then open $URL else /usr/local/bin/growlnotify --image "$HOME/Scripts/Images/WebEx-sm.png" -t "No WebEx Meeting" -m "No Meeting to Join Yet!" fi Here is the Terminal Version #!/bin/bash if [[ $# -ne 0 ]] then URL=`/usr/local/bin/icalBuddy -ic B48EAE40-D366-4E90-9C8F-D828E9472FD1 eventsNow | sed -n '/'$1'/,$p' | grep -m 1 "https" | sed 's|.*[ |>]*https\(.*\)[ |>]*|https\1|'` else URL=`/usr/local/bin/icalBuddy -ic B48EAE40-D366-4E90-9C8F-D828E9472FD1 eventsNow | grep -m 1 "https" | sed 's|.*[ |>]*https\(.*\)[ |>]*|https\1|'` fi if [[ $URL == https* ]]; then open $URL else echo $URL /usr/local/bin/growlnotify --image "$HOME/Scripts/Images/WebEx-sm.png" -t "No WebEx Meeting" -m `echo $URL` #/usr/local/bin/growlnotify --image "$HOME/Scripts/Images/WebEx-sm.png" -t "No WebEx Meeting" -m "No Meeting to Join Yet!" fi
  14. If you try to move a file from Alfred to a folder and the file exists the operation fails without warning. I am running 2.1 but I know the issue dates back to Alfred v1.
  15. I am having issues with it saying the URL is blocked but only when I enable Gloli. Did not try using bitly since it says a username is required. Not familiar with either of these services. Any ideas.
  16. Thanks I reinstalled it and it is working as expected. I written some AS to reformat my phone numbers. I also deleted and imported my contacts a few times and think the metadata got duplicated so that ,ay have caused the issue. Thx for you quick response, Andrew. Mike
  17. I have a contact workflow search that just uses contact search in Alfred and then sends the output to the Open file function. Prior to 2.0.8 it would view my contact info in Alfred when I hit return. Now it opens the contact card in Contacts. I have the option enable to view contacts in Alfred. If I just type a contact name in Alfred directly without using the Contact search it views the contact in Alfred as expected. I reverted back to v2.0.7
  18. Thanks I tried it and although it only shows the local folder it does not actually take u to the right folder with Mail goto . I probably won;t be usable anyway unitl it is optimized. Still a great job!
  19. I love the idea however with my extensive Exchange account with over 100 mailboxes it is very slow every time I use the extension.
  20. I was wondering if there is an easy way to limit the scripts to just using my Exchange Mailbox. I only use my Local mailbox for Archiving and do not want the results to show up. I tried to quickly set mailbox manually in the script but then I get the same thing twice for Exchange. I could dissect the entire script and rewrite but figured you might know an easy way. Thx
  21. Use this simple workflow to set the Flag of a mail message in mail.app. Syntax is below. Set Flag of Mail Message (mf < r | o | y | g | b | p | a | n >) [Gray is a] Download from Here: http://cl.ly/2T2z210p0K0l
  22. Use this simple workflow to set the background color of a mail message in mail.app for easy identification. Syntax is below. Change Background Color of Mail Message (mc < r | o | y | g | p | a | n >) [Gray is a] Download from Here: http://cl.ly/252H150J4420
  23. Sorry blame it on hours migrating 120 Extensions to Workflows from Alfred to Alfred2. I swear I disabled Alfred at login but after reloading it must of restarted. I am done with it now so I trashed Alfred. Thx again.
  24. When searching workflows the search should be fuzzy and not just match the first character. Especially important since everything has been turned into a workflow.
×
×
  • Create New...