Jump to content

mPD

Member
  • Content Count

    11
  • Joined

  • Last visited

  1. @Andrew sort of agree but 'ps aux' does not return that much data. We use Ruby regex operator the =~ operator which matches the regular expression against a string (return of 'ps aux') and it returns either the offset of the match from the string if it is found, otherwise nil. Because we are checking for exact app name "myPhoneDesktop.app" it will never return path, etc... as it will be only one entry for it in what 'ps aux/ returns. The problem I found - not sure why yet - is that when executing this from within Alfred it always returns something but never nil. For example even a check for a
  2. @matt I am not 100% sure what you mean i.e., why would grep for "myPhoneDesktop.app" string from the embedded ruby script would tell me if app is actually running... I guess I misunderstood you. If possible, please explain. Thank you.
  3. Just post a question in the "Workflow Help & Questions" section of the forum: http://www.alfredforum.com/topic/2674-alfred-returning-false-positive-for-ruby-method/ If someone has any ideas please comment. Thank you.
  4. Strange issue - hope somone would be able to explain why this happens. In our workflow: https://bitly.com/myphonedesktop-alfred2 when user triggers workflow, we have a check if our application (myPhoneDesktop) is running and if not we starting application. The way we check if app is running is the same way we do for all our other extensions, plugins, etc e.g., myPhoneDesktop for Dropzone - we have the following ruby method: def mpd_running?(app_name) `ps aux` =~ /#{app_name}/ ? true : false end Whats strange is that (ONLY from within Alfred) #mpd_running? method returns a fal
  5. Regarding the issue: "check if myPhoneDesktop is running and if not - start it" - we had submitted issue to Alfred developers because current check if myPhoneDesktop is running returns false positive when executing from within Alfred Thanks to @matias we implemented a temporary workaround so you can now download updated workflow We will update this thread as soon as we know more info. Thank you.
  6. This is possible now you can do this with \n for example to send multiline SMS do Send 212-555-1212 | line1 \n line2 \n line 3 to send multiline text do: Send line1\n line2\n line3
  7. You are very welcome! Regarding check if mPD is running - the check is there - will have to check why its not working for you. will update...
  8. NOTE: For complete and up-to-date information on how to install, use and customize myPhoneDesktop for Alfred 2 Workflow click this link: myPhoneDesktop for Alfred Workflow (Send to iPhone)
  9. Please note that official myPhoneDesktop for Alfred 2 workflow was released and myPhoneDesktop now supports any file types: http://www.alfredforum.com/topic/2280-send-to-iphone-send-phone-numbers-sms-images-photos-or-any-other-kind-of-files-to-iphone/
  10. NOTE: For complete and up-to-date information on how to install, use and customize myPhoneDesktop for Alfred 2 Workflow click this link: myPhoneDesktop for Alfred Workflow (Send to iPhone) myPhoneDesktop provides an easy and effective way to work with your iPad, iPhone or iPod touch directly from your desktop. It works like magic and it is wireless! Whether you need to make a phone call, send a long SMS, copy a large amount of text, send a long and complicated to retype URL, open route in mobile Google Map, or store an image on your iPad or iPhone, myPhoneDesktop greatly streamlines yo
×
×
  • Create New...