10.3.9 Broke something
10.3.9 Broke something
- Subject: 10.3.9 Broke something
- From: Lee Noble <email@hidden>
- Date: Fri, 22 Apr 2005 08:30:14 +0100
I've used WireTap to record a WMP stream every weekday for over a year. For the last three days the script has failed while selecting the save folder. This part of the script uses UI Scripting as there is no alternative. Here's the script.
set showName to "Breakfast"
set theURL to "http://" & "ms2.capitalinteractive.co.uk/xfm_low"
set recordingFolder to "/Users/username/Music/Radio/" & showName
set theDate to current date
set theYear to year of theDate
set theMonth to month of theDate
set theDay to day of theDate
set dateString to theYear & "-" & theMonth & "-" & theDay & "_ " as string
tell application "WireTap"
activate
--start recording
end tell
tell application "System Events"
tell process "WireTap"
tell menu bar 1
tell menu "WireTap"
click menu item "Preferences..."
delay 3
end tell
end tell
tell window "Preferences"
keystroke dateString
tell group 1
set value of text field 1 to dateString & return
delay 3
click button "Change..."
delay 3
end tell
tell sheet 1
tell group 1
keystroke "G" using {shift down, command down}
end tell
delay 3
end tell
end tell
tell window "Go To Folder"
set value of text field 1 to recordingFolder
delay 2
click button "GoTo"
delay 3
end tell
tell window "Preferences"
tell sheet 1
click button "Open"
delay 3
end tell
click button 1
delay 3
end tell
end tell
end tell
tell application "WireTap"
start recording
end tell
tell application "Finder"
set volume 0.1
set theDate to "Breakfast Show " & (do shell script "date +'%A %B %d'")
say theDate
end tell
tell application "Windows Media Player"
activate
end tell
delay 12
tell application "System Events"
tell process "Windows Media Player"
keystroke "u" using command down
delay 2
tell window "Open URL"
keystroke theURL & return
delay 10
end tell
end tell
end tell
The script has always run from the login screen (logged in...switched out) without issue. Now it stops after the Go To box pops up and the field is left unpopulated. I tested the script yesterday by setting it to go off in 5 minutes and switched out to the login screen. It worked flawlessly. So it seems that the length of delay, since I leave it overnight, is affecting it.
Has anyone else experienced a similar issue or know what I can do about it?
Lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden