Skip navigation
This discussion is archived

Applescript & Automator- display dialog title

989 Views 1 Reply Latest reply: Sep 26, 2010 4:56 PM by baltwo RSS
Moolivia Calculating status...
Currently Being Moderated
Sep 26, 2010 3:59 PM
I'm trying to make an Automator service. For one of the steps I would like to use an Applescript that looks something like the one below.

set dpaste to "Enter a title, press tab, add some text, and click Continue when you're done."
set dialog_title to "Post To Blog"
set dpastedialog to display dialog dpaste with title dialog_title with icon 1 buttons {"Cancel", "Continue"} default button 2
if button returned of dpastedialog is "Continue" then
tell application "System Events"
keystroke "v" using command down
end tell
end if

However, the line "set dpastedialog to display dialog dpaste with title dialog_title" seems to be giving Automator some trouble. Whenever I try to compile/run the script, I get the following error message from Automator: "Expected end of line, etc. but found identifier" with the variable "dialog_title" selected.
When I run this script from Applescript Editor I get no trouble.

Mac OS X (10.6.4)
  • baltwo Level 9 Level 9 (59,145 points)
    Currently Being Moderated
    Sep 26, 2010 4:56 PM (in response to Moolivia)
    Test the script in the AppleScript Editor until you resolve the issue. Alternatively, post to the AppleScript forum under OS X Technologies.
    27" iMac i7 12 GB RAM, Mac OS X (10.6.4), G4 450 MP GB 1.5 GB RAM w/(10.5.8/10.4.11/9.2.2)


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.