• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
wierd behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wierd behavior


  • Subject: wierd behavior
  • From: tom wible <email@hidden>
  • Date: Mon, 15 Jan 2007 17:56:21 -0500

i've written a set of a/s to record & play hd transport streams from an external firewire hdtv tuner, using apple's f/w SDK's vDVHS...all has been working well, until tonite...

i ran my playback app, which lists all .m2t files, then for each:

	set recFile to (recDir & recFilename) as string
	set recFile to POSIX file recFile
	tell application "Finder"
		set fileDate to modification date of file recFile
		set fileSize to ((size of file recFile) / 1.0E+9) as real
	end tell

the event log in script editor, shows:

tell application "Finder"
get modification date of file (file "DVR:dVHS:recordings:Capture_Jan_09_2007__07_59_30_PM.m2t")
missing value
get size of file (file "DVR:dVHS:recordings:Capture_Jan_09_2007__07_59_30_PM.m2t")
4.727465672E+9
end tell


wtf??? the finder's infopane shoes the mod date as date "Tuesday, January 9, 2007 8:55:18 PM" and the same code has been working fine (on 2 different machines, a g4 powerbook & a duo minimac) until now...now it gives missing value on a file that definitely has a mod.date:

[tomw@tomsEmachine recordings]$ ls -l Capture_Jan_09_2007__07_59_30_PM.m2t
-rw-r--r--  1 dvr 502 4727465672 Jan  9 20:55 Capture_Jan_09_2007__07_59_30_PM.m2t

and when i cut the code into another script window:

set recFile to "/Volumes/tem/dVHS/recordings/Capture_Jan_09_2007__07_59_30_PM.m2t"
set recFile to POSIX file recFile
tell application "Finder"
	get modification date of file recFile
end tell

the event log gives what i expect:

tell application "Finder"
get modification date of file (file "DVR:dVHS:recordings:Capture_Jan_09_2007__07_59_30_PM.m2t")
date "Tuesday, January 9, 2007 8:55:18 PM"
end tell


oh wait: when i recompile, i get no error...wtf??? just rebooted, error's back...


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: weird behavior
      • From: tom wible <email@hidden>
  • Prev by Date: Re: How do I run a javascript/script within an applescript?
  • Next by Date: Re: how to get OS version with Shell script?
  • Previous by thread: RE: CAPITAL to Upper And Lower Case (revised)
  • Next by thread: Re: weird behavior
  • Index(es):
    • Date
    • Thread