That's not how you get a variable into an Execute a JavaScript in Safari action.
See this recent post:
-Chris
For more information, see the wiki Searching the Forum for Answers section.