-
Posts
466 -
Joined
-
Last visited
-
Days Won
22
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by vdesabou
-
-
The easiest way to install terminal-share would probably be to install the gem. Just open Terminal, enter the following command, and enter your password when prompted:
sudo gem install terminal-share
That should get it working.
Thanks. I've updated the initial post to include this
-
DL link is broken.
Can you try now?
-
For follow-up on this, I found a way to do it (using terminal-share command line), see workflow here
-
alfred-mountain-lion-builtin-sharing
==========================
Use built-in sharing introduced in Mac OS X 10.8 Mountain Lion directly from Alfred!
Description
This workflow is using the amazing command line terminal-share
You can call directly share command (or use a hotkey) if you just want to share a message.
If you want to share a file (image, video or any other kind), you can select it using a File Action, or set a hotkey.
It currently supports all services except sinaweibo,youku and tudou (I can add them in a future release).
Based on the type of the selected file, services proposed will change.
Here are some examples:
Screenshots
Download the workflow
Download the workflow below and open in Alfred.
History
1.11:
- Move to GitHub
- fix AllayOop version
- Added hotkeys to call built-in facebook, twitter, imessage and email
1.8:
- Fix problem introduced in version 1.7 with files names with spaces
- Fixed a bug where image was not displayed in the sharing window
- Start Droplr if needed before trying to upload
- Added support of droplr (using cmd modifier). It will upload selected file to Droplr, and then paste at the end of the message the url. It only works with facebook, twitter, imessage and email (other services don't use message).
- Improve handling of special characters
- The terminal-share is now included is the workflow
- Twitter issue is fixed
- Minor fixes
- Added abilitity to cancel file sharing by selecting the Selected file entry
- Support of Alleyoop
- Initial Version
- Florian, Chris Messina, bcometa and 3 others
- 6
-
You can get hot key information from plist variable in main.py
For example, Cntl-Command-E is represented as '{'type': 'alfred.workflow.trigger.hotkey', 'config': {'leftcursor': False, 'argument': 0, 'hotkey': 14, 'action': 0, 'hotstring': 'E', 'hotmod': 1310720, 'modsmode': 0}', but I don't know the whole information how to interpret.
Indeed, that's tricky! But it seems Shawn Rice, the author of the help workflow was able to decrypt it, see http://www.alfredforum.com/topic/1653-workflows-help-workflow/
That's just in case you wanted to add this, I personally don't use much hotkeys :-)
Thanks again for this great workflow
-
I am using 10.8.3.
When I do "s update" the notification only shows "Skype" (no subtext) and it is very quick (compared to previous version where it takes some time to build the cache)
I tried to debug a bit more and I get:
python vinc.py Traceback (most recent call last): File "vinc.py", line 2, in <module> s.sendMessage("skype update",show=True) File "/Users/vincent/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.08332C67-55FC-49BB-B546-E02AC9181AF7/skypingalfred.py", line 144, in sendMessage _getAvatars() File "/Users/vincent/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.08332C67-55FC-49BB-B546-E02AC9181AF7/skypingalfred.py", line 215, in _getAvatars bg = Image.open("avatars/"+av[0]+".jpeg").resize((96,96),Image.ANTIALIAS) File "/Users/vincent/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.08332C67-55FC-49BB-B546-E02AC9181AF7/PIL/Image.py", line 1290, in resize self.load() File "/Users/vincent/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.08332C67-55FC-49BB-B546-E02AC9181AF7/PIL/ImageFile.py", line 164, in load self.load_prepare() File "/Users/vincent/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.08332C67-55FC-49BB-B546-E02AC9181AF7/PIL/ImageFile.py", line 231, in load_prepare self.im = Image.core.new(self.mode, self.size) File "/Users/vincent/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.08332C67-55FC-49BB-B546-E02AC9181AF7/PIL/Image.py", line 37, in __getattr__ raise ImportError("The _imaging C module is not installed") ImportError: The _imaging C module is not installed
Not sure yet how to fix this since I don't know python, I'll google it. But if someone knows the issue, that would be great :-)
-
Hi, the link is for a "Connect to VPN" workflow, not the Airplane Mode one. Am I missing something?
-
-
Interesting. What OSX Version are you on? When you s ... it does find all your friends?
(BTW Skype stores many things one might believe to be lost in that database...)
I am using 10.8.3.
When I do "s update" the notification only shows "Skype" (no subtext) and it is very quick (compared to previous version where it takes some time to build the cache)
-
Hi, for the avatar in the directory, is there online one image or are there variants _online.jpg, _offline.jpg ... ?
No there is only one jpeg image skypepseudo.jpeg
-
Hi,
With latest update (BTW there is no more icon for the extension) and after doing a "s update", I only have one avatar in the avatar directory. (with prior version, I had all avatars)
I don't really know what I can do to debug the issue, any suggestion?
Note: the only avatar that gets loaded is from a contact that has been removed from my contact list since a long time, not sure why it is still present in Skype DB.
PS: your workflow is awesome!
-
Thanks it is working fine now!
This workflow is awesome !
It would be great to have also the hotkey, but I don't know if this is easy to get from the plist.
Cheers!
-
That's awesome, I will use it very often!
However, it is not working on my side. Trying to execute the python script on command line, I get:
python main.py "test" Traceback (most recent call last): File "main.py", line 31, in <module> keyword = ",".join([o['config']['keyword'] for o in plist['objects'] if 'alfred.workflow.input' in o['type'] ]) KeyError: 'keyword'
Any idea how to fix this?
Cheers
-
Great workflow!
I personally added a "Large Type" at the end of the runcommand, otherwise I had no idea how the command ended
-
Hi David,
I believe this is because LANG was not set when invoking the script with Alfred.
In terminal, If I do:
$ echo $LANG fr_FR.UTF-8 $ ksh repro.ksh tete $ unset LANG $ ksh repro.ksh sed: 1: "y/ÀÁÂÃÄÅÆÇÈÉ� ...": transform strings are not the same length
So I added in the "repro2" repro.ksh script, export LANG='fr_FR.UTF-8' and now it works!
Problem solved. Thanks
-
Yes, it seems related to sed indeed, but that's strange that it is only happening when using Alfred.
I've simplified the code:
Looks like using combination of y/"accented character" is causing the issue:
mystring="Têté" mystring=$(echo "$mystring" | sed y/ê/e/) echo "$mystring"
is not working
If i do:
mystring="Têté" mystring=$(echo "$mystring" | sed y/t/b/) echo "$mystring"
or :
mystring="Têté" mystring=$(echo "$mystring" | sed s/ê/e/) echo "$mystring"
It is working
Weird...
Thanks for your help, I'm getting crazy :-)
-
Hi,
I have a difference of behavior when I execute a ksh script in a "Run script" action in Alfred and in a terminal.
The code is as following:
SPEC_CHAR="ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ" NORM_CHAR="AAAAAAACEEEEIIIIDNOOOOOOUUUUYPSaaaaaaaceeeeiiiionoooooouuuuyby" mystring="têté" mystring=$(print $mystring | sed 'y/'${SPEC_CHAR}'/'${NORM_CHAR}'/') echo "$mystring"
When I execute in terminal, I have:
/Users/vincent/Downloads>
ksh repro.kshteteBut when I execute it in Alfred (see workflow with reproduction here http://d.pr/f/ShJl ), I get an empty string for $mystringAny idea what's wrong here?Mac OS 10.8.3Alfred: 2.0.2Reproducible: Yes -
Great workflow!
Would be great to update it with 'fileicon' in order to get the icon of the files instead of generic folder icon :-)
Cheers
-
Very cool, Thanks!
I've noticed that Alfred has difficulties to remember the most used item. I believe (but not sure) that it is because your uid are too short (i, c, ic,etc..)
I replaced them with "screencapture1, screencapture2, etc.." and now Alfred can remember the most used items correctly.
Cheers
-
Many thanks for this! It works perfectly
-
awesome! thanks!
-
</items> seems to be missing at end
My 2 cents
-
Hi,
It would be nice to have an option to display color labels for files and folders in Alfred.
Just a thought for a future release :-)
Cheers
- Ingolmo and Amoftcoorb
- 2
-
Hi,
I would love to have a File Action for example that provide option to share the file using builtin sharing from Mountain Lion (instead of opening file in Finder and press the share button)
I could not find a way to do this, maybe an applescript that open a finder and automatically press the share button ?
Any thoughts?
Cheers
--
Vincent
Rename File action
in Share your Workflows
Posted
Thanks, great workflow, I use it a lot!
I've just added on my side a Notification at the end and a Copy to clipboard with the new file name in order to quickly browse it in Alfred if I need to