tell application "Finder"
activate
open folder "Macintosh HD:Applications"
tell application "System Events"
click at {100, 100}
end tell
delay 3
end tell
set save_location to Desktop
repeat with shotcount from 1 to 100
do shell script "screencapture " &
Desktop/untitled folder & "screen" & (shotcount as string) & ".pdf"
delay (5)
end repeat
tell application "Safari"
activate
tell application "System Events"
click at {100, 100}
end tell
delay 5
end tell
What specifically is your script?
What specifically are the errors?
What do you want to accomplish with the mouseclick?
What is it you're trying to do?
mt
repeat with shotcount from 1 to 100
do shell script "screencapture " &
Desktop/untitled folder & "screen" & (shotcount as string) & ".pdf"
delay (5)
end repeat
"Desktop/untitled folder" is the path where to save the image
set save_location to '/Users/Fahad/Desktop/untitled folder'
repeat with shotcount from 1 to 100
do shell script "screencapture " &
'/Users/Fahad/Desktop/untitled folder' & "screen" & (shotcount as string) & ".pdf"
delay (5)
end repeat
tell application "Safari"
activate
tell application "System Events"
click at {100, 100}
end tell
delay 5
end tell
set save_location to "'/Users/Fahad/Desktop/untitled folder'"
set save_location to quoted form of save_location
set save_location to ¬
"'Users/Fahad/Desktop/ss'"
repeat with shotcount from 1 to 2
do shell script "screencapture " & ¬
quoted form of POSIX path of save_location ¬
& "screen" & (shotcount as string) & ".jpg"
delay (10) -- delay 3 second
tell application "System Events"
click at {1360, 450}
end tell
delay 3
end repeat
set save_location to ¬
"'Users/Fahad/Desktop/ss/'" -- assuming ss is a folder
repeat with shotcount from 1 to 2
do shell script "screencapture " & save_location ¬
& "screen" & (shotcount as string) & ".jpg"
delay (10) -- delay 3 second
tell application "System Events"
click at {1360, 450}
end tell
delay 3
end repeat