Become a Site Supporter and Never see Ads again!

Author Topic: AppleScript help  (Read 1242 times)

0 Members and 1 Guest are viewing this topic.

Offline deeputahpowder

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 114
  • Gender: Male
AppleScript help
« on: July 18, 2007, 08:35:17 PM »
 :banging head: yep. once again i find myself banging my head against the wall with a script issue.  Probably something really small.  I have this applescript that worked fine in sound studio 2.1 then i had to upgrade to 2.2.4 and now this script gives me this error
 Sound Studio 2.2 got an error: NSInternalScriptError"

here is the script..

set theDate to current date
set theday to day of theDate
set thetime to time of theDate
set myaddress to "Macintosh HD:Users:davidknose:Music:tbf06:" & theday & thetime
tell application "Sound Studio 2.2.4"
   activate
   stop document "untitled"
   delay 85
   -- delay time set for writing waveform of 2 hour set
   save document "untitled" in myaddress
   delay 180
   -- delay time set for saving waveform of 2 hour set
   close document "untitled" saving no
end tell

here is the event log

tell current application
   current date
      date "Wednesday, July 18, 2007 8:28:28 PM"
end tell
tell application "Sound Studio 2.2.4"
   activate
   stop document "untitled"
   delay 85
   save document "untitled" in "Macintosh HD:Users:davidknose:Music:tbf06:1873708"
      "Sound Studio 2.2 got an error: NSInternalScriptError"

this was the line I was using:
save document "untitled" in file myaddress as «class AIFF» 
didn't like FILE, so i took it out. now it will compile but throws this error. also the delays don't seem to work anymore
hoping someone can help.
thanks, dave
Avantone ck-1's ->  722

Offline deeputahpowder

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 114
  • Gender: Male
Re: AppleScript help
« Reply #1 on: July 21, 2007, 03:31:49 PM »
well, i've upgraded to 10.4 and grabbed the demo version of SS 3.5.3 and the save feature works now I just can't figure out how to specify which file type to save it as.. i.e AIFF Audio.   ???
Avantone ck-1's ->  722

 

RSS | Mobile
Page created in 0.049 seconds with 27 queries.
© 2002-2024 Taperssection.com
Powered by SMF