Jump to content

mac

Member
  • Posts

    6
  • Joined

  • Last visited

Everything posted by mac

  1. Thanks for your answers (got back from a long trip to try things out). Definitely looks like the explode() command in the script is the culprit. Unfortunately $files = explode("\t",$files); doesn't work either. As an example I tried it on the following filename "ESA PB-EO(2015)16 SAOCOM-CS – Status and Way forward v3 clean" getting the result "File does not exist" with spaces replaced by plus signs i.e. "ESA+PB-EO/(2015/)16+....". Is there a workaround that you know off to get the filename in a consistent way for the encoding in PHP ? Thanks again for your help Mac
  2. Sometime ago I got through David a great little PHP script to attach files selected via Alfred to IBM notes emails. I use it a lot and works fine as long as the file does not contain any spaces in the name. If there are spaces that attachment process does not work. The script is the following: $files="{query}";$files=explode(" ", $files); $url="mailto:?"; foreach($files as $f): $url.="&attach=".urlencode($f); endforeach; echo $url; exec('open /Applications/IBM\ Notes.app "'.$url.'"'); My question - how can the url encode() be modified so that filenames with spaces are also properly inserted into my emails. I've tried looking without success.
  3. Hi Dave, Works like a charm even with multiple files selected - many many thanks. That seems to be a good general solution for email clients such as Lotus Notes that don't work with AppleScript. Again thank you Malcolm
  4. Here is the workflow as implemented right now. Thanks for any help. https://dl.dropboxusercontent.com/u/10782873/Attach%20to%20IBM%20Notes%20Email.alfredworkflow
  5. Ok - I've found a work around for the file action attachment" using IBM Notes based on the following csh script C shell script that you can use in Automator. set m = "mailto:?" foreach f ($*) set f = `perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$f"` set m = "$m&attach=$f" end open /Applications/IBM\ Notes.app "$m" The automator service works fine. However, adding a file action service called "Notes attachement" connected to a bash script which references the Automator workflow however does not. I see the file action in the menu and it correctly starts up a new email in Notes but without the attachment. Tips welcome. Mac
  6. After downloading and installing the recent v2.2 of Alfred I cannot get Alfred to use the default email client (Lotus Notes) in my case. I worked for v2.0 however. What I do: - select a file in the finder - Use the file selection command - From the menu chose "Email" This automatically brings up the Apple Mail.app instead of IBM Notes (formerly lotus notes) which is my default mail client. Note the following: - using Alfred v2.0 + power pack until the upgrade this action worked fine and brought up IBM Notes attaching the file correctly - I've checked both in the Apple Mail.app and the client preferences are correctly set - For other applications (e.g. click to send email links in browsers) the IBM Notes client is started correctly. Only Alfred seems to be hardwired to the Apple Mail.app I hope this can be solved. It was so useful to have. Mac
×
×
  • Create New...