Re: simple Quictime script
Re: simple Quictime script
- Subject: Re: simple Quictime script
- From: Alex Zavatone <email@hidden>
- Date: Wed, 13 Oct 2010 03:25:43 -0500
You can, but you might want to add a "using terms from" clause.
I can help you with that tomorrow man.
On Oct 13, 2010, at 2:56 AM, Jan E. Schotsman wrote:
> Thanks, Santa.
>
> The problem was of course that I shouldn't call a subroutine inside a tell application block.
>
>> I've used Quicktime 7 as Quicktime 10 does not automatically play movies.
>
>
> Quicktime 7 doesn't either on Leopard for me.
>
> Actually I want QuickTime 7 because I am not sure if QuickTime Player X can save (preserving the current time).
>
> So now I do this
>
> on reopen_movie(movieName, filePath)
>
> set system_version to get_system_version()
> if system_version as number ≥ 1060 then
> set old_qt_Player to "QuickTime Player 7"
> else
> set old_qt_Player to "QuickTime Player"
> end if
>
> reopen_movie_in_qt_player(old_qt_Player, movieName, filePath)
>
> end reopen_movie
>
> on reopen_movie_in_qt_player(old_qt_Player, movieName, filePath)
>
> tell application old_qt_Player
>
> if (exists window movieName) then
> save window movieName
> close window movieName
> end if
> open POSIX file filePath as alias
> end tell
> end reopen_movie_in_qt_player
>
>
> where get_system_version is a routine a found in the archives.
>
>> open filePath
>
>
> So you can use
>
> open filePath instead of open POSIX file filePath as alias ?
>
>
> Jan E _______________________________________________
> 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/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden