Jump to content

lululau

Member
  • Content Count

    7
  • Joined

  • Last visited

  1. This is an DTerm alternative workflow, you could activate the iTerm2 "Hotkey Window" by a global hotkey press (default to "command + d"). And it will change the working directory to the path of the document which is opened by the fontmost window, and copy the base name of that file to the clipboard. Home page of repository: https://gitcafe.com/lululau/ActivateITerm2HotkeyWindow/ README: https://gitcafe.com/lululau/ActivateITerm2HotkeyWindow/blob/master/README.md Direct download: https://gitcafe.com/lululau/ActivateITerm2HotkeyWindow/raw/master/Activate%20iTerm2%20Hotkey%20Window.alfredworkflow
  2. filename=$(echo 'tell application "System Events" set theprocess to the first process whose frontmost is true set thetitle to the value of the attribute "AXTitle" of theprocess set thewindow to the value of attribute "AXFocusedWindow" of theprocess set thefile to the value of attribute "AXDocument" of thewindow as string if thetitle is "Finder" then tell application "Finder" set thefile to (POSIX path of (target of the first window as alias)) end tell end if set thefile to thefile end tell' | osascript -ss | php -r 'echo urldecode(fgets(STDIN));') filename=${filename%\"} filename=${filename#\"} filename=${filename#file://localhost} dirname=$(dirname "$filename") basename=$(basename "$filename") hope this is useful for you
  3. ~ $ ls -ld ~/Library/Application\ Support/Alfred\ 2/Alfred.alfredpreferences/ drwxr-xr-x 6 liuxiang staff 204 3 17 17:01 /Users/liuxiang/Library/Application Support/Alfred 2/Alfred.alfredpreferences/
  4. My users folder is on a separate drive: liuxiang@MacBookPro: ~ $ ls -ld /Users lrwxr-xr-x 1 root admin 14 1 7 2012 /Users -> /Volumes/Users liuxiang@MacBookPro: ~ $ df -h Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk0s2 111Gi 89Gi 21Gi 81% 23518313 5576989 81% / devfs 212Ki 212Ki 0Bi 100% 735 0 100% /dev /dev/disk1s2 698Gi 329Gi 369Gi 48% 86267112 96666630 47% /Volumes/Users map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home localhost:/dSPQgoZBXnkoyM_JjHTPfp 111Gi 111Gi 0Bi 100% 0 0 100% /Volumes/MobileBackups /dev/disk2s1 466Gi 394Gi 71Gi 85% 103372370 18716075 85% /Volumes/MyPassport
  5. I created a new user account, and login with the new account then open Alfred and did some preference settings, and the issue still exists. In fact I found that the 'Alfred Preferences' application did persist preferecens I've changed out to the "~/Library/Application Support/Alfred 2/*/*.plist" files, but after relauch the option checkboxes on the 'Alfred Preferences' application panels still keep the original default values.
  6. I cleaned up the "~/Library/Application Support/*[Aa]lfred*" folders and the "~/Library/Preferences/*[Aa]lfred*" files, but that did not work, is there any files/folders should be cleaned up which could fix this problem other than doing FS permission repair?
  7. version: v2.0.1(173) OS: 10.8.3 it can not remeber the prefernces modifications haven been done after restarting the Alfred app, e.g. "Appearance -> Options -> Hide hat on Alfred window", "Features -> Default Results -> Search all file types", etc.
×
×
  • Create New...