Jump to content

Beeber

Member
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Location
    Southern California

Beeber's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Froethen, Thanks! It works for me too. I had just about given up on creating Alfred workflows with Applescript. I've got my 100-line Caffeine workflow working now. Do you have any idea why you and I need to tell application "System Events" to display dialog while David and others can just use the display dialog without wrapping it around a tell statement?
  2. My laptop, also running OS X 10.8.4 behaves the same way. So that probably eliminates a quirky installation of Alfred 2, since they were done totally independent of each other at different times. (What's the likelihood of two bad installations of Alfred 2?) I should add that I'm running the latest version of Alfred 2, and of course I have the PowerPack.
  3. Mac OS X 10.8.4, the latest release (non-Beta). I have a MacBookPro, also with 10.8.4. Let me dig that out and test these workflows there. I'll let you know.
  4. Yeah, Console.app shows no messages for Test01 or Sample01. I put an error in a workflow I downloaded (uses Run NSApplescript) just to see what kind of message I'd get. The message clearly states "Alfred 2" and the workflow name. So I'm sure the scripts aren't generating an error. I was chasing down an idea earlier; I think something in my setup doesn't allow third party apps to run applescript. There is a Run Applescript service available to some apps, like Notes. I added an applescript display dialog command into a Note, selected it and ran the service. I get an OS X message: Confirm Service: Notes wants to use the restricted Service "Run as Applescript" with buttons "Run Service" and "Cancel". Selecting "Run Service" opens Applescript and bounces the icon on the dock, it doesn't take focus. After clicking on the bouncing Applescript icon the dialog appears.
  5. David, Thanks for the quick response. I downloaded and installed your workflow, sample01. The same problem--absolutely nothing happens (all windows were minimized before running the workflow--it wan't hidden behind something). I assume the display dialog appeared on your computer. I can run scripts from terminal (with the permissions set correctly) and from the Applescript Editor. My full-up script runs from a Run NSAppleScript Action box. It's all rather frustrating.
  6. I've got the most basic of all newbie questions. I created an applescripts with about 200 lines and it works fine when running it from the Applescript editor. I bring it into an Alfred workflow and nothing happens. I was able to get it to work with NSAppleScript but I want it to run in the background so I'm using the action RunScript. I've created a very simple one line script and I can't get that to work with RunScript. I'm missing something fundamental here but I've been racking my brain for a week and I see no one in the forum is asking such a basic question. I see a bunch of workflows that start out with "run script (POSIX fileā€¦" but I've got to believe I can just drop my applescript into the script text box of a Run Script. Here's a simple test I did. Can you tell me what I'm doing wrong? 1) In Alfred workflow I create a new Keyword to Scrip workflow, which gives me a Keyword box and a Run Script box already connected. I right click on the new workflow and choose "Edit Details" where I name the workflow "Test01" 2) I open the Keyword box, enter Test01 for the keyword, check "with space" and choose "Argument Optional", then hit the save button. (I've also tried No Argument for this test -- no difference in the results) 3) I open the RunScript box, select language "/usr/bin/osascript", Check only "Double Quotes" and "Backslashes" and enter the following line in the Script field: display dialog "Test01 script running" then hit the save button. At this point it seems like I'm done. I bring up Alfred, type Test01 (Alfred recognizes it as a workflow), I hit return and absolutely nothing happens. Any help would be greatly appreciated.
×
×
  • Create New...