gustavok
-
Posts
4 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by gustavok
-
-
Hi,
I made a simple an apple script to open a specific folder triggered by a hotkey, but it's not working and I can't find why.
It works if I use the Script Editor from Mac OS but when I paste it inside the "Run NSAppleScript" window on Alfred it doesn't.
Script:
on alfred_script(q)
property the_path : "/Users/UserXXX/Downloads"
set the_folder to (POSIX file the_path) as aliastell application "Finder"
activateif front Finder window exists then
set target of front Finder window to the_folder
else
open the_folder
end ifend tell
end alfred_script
-
Hi,
I want to create a workflow to change the user in the Terminal app but I can't make the workflow wait for the Terminal ask for the password and just then write it .
I think what I need is a "wait next interaction from the computer" command or something like that.
-
Hi,
I want to use a series of terminal commands, first to open the terminal ( if needed ), change the user ( log in as another user ), enter in a folder and execute a command to start a SQL server and then log out and close the terminal window ( if needed, maybe I can do it without opening it ).
After that I want to do the same to stop the server, but following the logic is the same script just changing the start to stop.
# Manually Start PostgreSQL## su as user "postgres" and run server:su postgres# type the password ( if possible do it automatically )cd /Library/PostgreSQL/9.0/bin/./pg_ctl -D /Library/PostgreSQL/9.0/data/ start# then logoutexit# close the terminal windowAnyway thanks for the attention !
Apple Script to open a folder PROBLEM
in Workflow Help & Questions
Posted
Thanks ! It works. I thought that the "open file" action only work with files and not folders. Anyway, I'm curios why the commands didn't work on that script.