Sorry, I should have been more clear:
Moderator: Mr_Noodle
If (all) of the following...
... Same ...
NAME does not match Screen Shot (...)skipped(...)
then
... Same ...
tell application "Finder" to set shortName to name of (theFile as alias)
set theDialogText to "Type the new name of the Screen Shot: " & shortName
set theButtonIfPressedTheRuleWillContinue to "Rename Screen Shot"
set theButtonIfPressedRuleAborts to "Skip File"
set theDialogTitle to "Advanced Hazel Renaming"
tell application "System Events"
activate
set theResult to (display dialog theDialogText with title theDialogTitle default answer "" buttons {theButtonIfPressedTheRuleWillContinue, theButtonIfPressedRuleAborts} default button 1 giving up after 60 with icon (POSIX file (POSIX path of (get path to library folder from user domain) & "/PreferencePanes/Hazel.prefPane/Contents/Resources/Hazel.icns" as string) as string) as alias)
end tell
if (button returned of theResult) is theButtonIfPressedTheRuleWillContinue then
set theText to text returned of theResult
return {hazelExportTokens:{NewFilename:theText}}
end if
return {hazelExportTokens:{NewFilename:shortName}}
if (all) of the following...
Something to match your file <-- the applescript DOES NOT go here.
then
Run AppleScript (exporting NewFilename) <-- This is where the applescript goes
Move, or whatever else.