Le 08/07/2013 à 16:04, Kaydell Leavitt < email@hidden> a écrit :
You can also check... do shell script "echo $USER" display dialog result
But, this raises a blank dialog box with "OK" and "Cancel" buttons. It does not return my name as AppleScript does.
When my Service is installed in /Library/Services, I get the blank dialog box with "OK" and "Cancel" to and it doesn't return my user name either, but this is only when installed system-wide.
When my Service is installed in ~/Library/Services, it works OK.
I believe that your Service may have gotten stored system-wide, in /Library/Services/ instead of just for your account, in ~/Library/Services because in Lion and in MountainLion, the folder ~/Library is invisible by default. I believe that Apple made this folder invisible to protect naive users against themselves, but for Services, I think that it's causing problems.
You can google for "show hidden mac files" and find articles on how to show all invisible files.
Or the following link may be more useful to you to enable you to only show the invisible file: ~/Library which may be better than showing all invisible files.
No need for shell command. Open the Library folder with the scheme described in the Help press option key while triggering the Finder's menu "Go to" the item Library will be available. It opens your user's library folder.
When this one is open, activate the mode "columns" this way you will be able to see the list of folders stored in the folder <yourAccount> Select the Library item then create an alias of it.
After that, the true Library folder will remain hidden but the alias will be visible. Triggering it will open the truelibrary folder.
Isn"t it a neat scheme ?
KOENIG Yvan (VALLAURIS, France) lundi 8 juillet 2013 16:20:07
|