On 5 Oct 2008, at 12:07 am, Mr. Gecko wrote:
ran the time test on my play playlist function and it was time =
-0.005 sec which is more than fast enough
Cool! You get the result back before you sent the query - that is
fast! ;-)
G.
___
Cocoa-
Ok thanks for the tips
I ran the time test on my play playlist function and it was time =
-0.005 sec which is more than fast enough for me. especially when my
computer is 733Mhz.
On Oct 4, 2008, at 4:26 AM, has wrote:
On 4 Oct 2008, at 03:54, Mr. Gecko wrote:
I am not using AppleScript t
On 4 Oct 2008, at 03:54, Mr. Gecko wrote:
I am not using AppleScript to do this, I am using AppleEvents, as
you can see in code below.
Aware of that. You'll often find that folks use the name "AppleScript"
as a catch-all term for anything relating to Apple event IPC. It's
easy to lapse i
I am not using AppleScript to do this, I am using AppleEvents, as you
can see in code below. This is way faster than using AppleScript.
- (void)playPlaylist:(NSString *)playlist
{
OSErr err;
AppleEvent cmdEvent;
err = AEBuildAppleEvent(iTunesSignature,
On 3 Oct 2008, at 17:09, Mr. Gecko wrote:
On Thu, Oct 2, 2008 at 9:52 PM, Mr. Gecko wrote:
I know but I can't find out the AppleEvent for Play Playlist.
Is there some sort of a program that will parse the AppleScript
and make an
cocoa AppleEvent code.
If you just want the raw four-char-co
I made it work for EyeTunes, added the functions -playPlaylist:
(NSString *)playlist; and -playTrack:(long)track ofPlaylist:(NSString
*)playlist;
AEDebugSends=1 /Applications/AppleScript/Script\ Editor.app/Contents/
MacOS/Script\ Editor is extremely useful for finding this stuff out.
I will try
On Oct 3, 2008, at 10:10 AM, has wrote:
Michael Ash wrote:
On Thu, Oct 2, 2008 at 9:52 PM, Mr. Gecko wrote:
I know but I can't find out the AppleEvent for Play Playlist.
Is there some sort of a program that will parse the AppleScript
and make an
cocoa AppleEvent code.
If you just want
Michael Ash wrote:
On Thu, Oct 2, 2008 at 9:52 PM, Mr. Gecko wrote:
I know but I can't find out the AppleEvent for Play Playlist.
Is there some sort of a program that will parse the AppleScript and
make an
cocoa AppleEvent code.
If you just want the raw four-char-codes from an application
Thanks for that, All i'll have to do now is find out how it puts
together the AppleEvent and than I can add it to EyeTunes as an
function.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comment
No I won't be able to use EyeTunes I looked, I had to add some of my
own functions into it to make it do what I wanted with volumes. so I
may add the play playlist function to it when I find out how I can do
it with AppleEvent.
___
Cocoa-dev maili
On Thu, Oct 2, 2008 at 9:52 PM, Mr. Gecko <[EMAIL PROTECTED]> wrote:
> I know but I can't find out the AppleEvent for Play Playlist.
> Is there some sort of a program that will parse the AppleScript and make an
> cocoa AppleEvent code.
Not quite, but you can get pretty close. Go to the section tit
On Thu, Oct 2, 2008 at 6:35 PM, has <[EMAIL PROTECTED]> wrote:
> Michael Ash wrote:
>
>> On Wed, Oct 1, 2008 at 10:16 PM, Mr. Gecko <[EMAIL PROTECTED]> wrote:
>>>
>>> I think I would just use this AppleScript call
>>> [[[NSAppleScript alloc] initWithSource:[NSString stringWithFormat:@"tell
>>> appl
I know but I can't find out the AppleEvent for Play Playlist.
Is there some sort of a program that will parse the AppleScript and
make an cocoa AppleEvent code.
On Oct 2, 2008, at 6:09 PM, Kyle Sluder wrote:
On Thu, Oct 2, 2008 at 6:45 PM, Mr. Gecko <[EMAIL PROTECTED]> wrote:
I think I'll s
On Thu, Oct 2, 2008 at 6:45 PM, Mr. Gecko <[EMAIL PROTECTED]> wrote:
> I think I'll stick with AppleScript
If you do, you're dependent on the AppleScript parser, which is an
awfully hefty dependency when you know precisely what Apple Events you
want to send. Your software quality will be much imp
I think I'll stick with AppleScript
On Oct 2, 2008, at 5:35 PM, has wrote:
Michael Ash wrote:
On Wed, Oct 1, 2008 at 10:16 PM, Mr. Gecko <[EMAIL PROTECTED]>
wrote:
I think I would just use this AppleScript call
[[[NSAppleScript alloc] initWithSource:[NSString
stringWithFormat:@"tell
appli
Michael Ash wrote:
On Wed, Oct 1, 2008 at 10:16 PM, Mr. Gecko <[EMAIL PROTECTED]>
wrote:
I think I would just use this AppleScript call
[[[NSAppleScript alloc] initWithSource:[NSString
stringWithFormat:@"tell
application \"iTunes\" to play playlist \"[EMAIL PROTECTED]"", [self
replace:@"\"
Mr. Gecko wrote:
Ok I now read everything in the programming guide for Scripting Bridge
and it is really cool, Now I can't seem to find out how to play a
playlist from a name id or anything.
If you know how to write an application command in AppleScript, e.g.:
tell application "iTune
On Wed, Oct 1, 2008 at 10:16 PM, Mr. Gecko <[EMAIL PROTECTED]> wrote:
> I think I would just use this AppleScript call
> [[[NSAppleScript alloc] initWithSource:[NSString stringWithFormat:@"tell
> application \"iTunes\" to play playlist \"[EMAIL PROTECTED]"", [self
> replace:@"\""
> with:@"\\\"" so
I think I would just use this AppleScript call
[[[NSAppleScript alloc] initWithSource:[NSString
stringWithFormat:@"tell application \"iTunes\" to play playlist \"%@
\"", [self replace:@"\"" with:@"\\\"" source:[sender title
executeAndReturnError:nil];
Works fast enough for me and it would
Ok I now read everything in the programming guide for Scripting Bridge
and it is really cool, Now I can't seem to find out how to play a
playlist from a name id or anything.
How would I do that?
Thanks,
Mr. Gecko
On Oct 1, 2008, at 1:10 PM, Uli Kusterer wrote:
On 01.10.2008, at 19:51, Mr.
SBApplication sounds easier than using EyeTunes, maybe I would make a
switch. I'll have to play with it to see what I can do.
On Oct 1, 2008, at 1:10 PM, Uli Kusterer wrote:
On 01.10.2008, at 19:51, Mr. Gecko wrote:
Hello I am needing to know how to play a playlist in iTunes using
AppleEve
Well which ever one is faster, I know for applescript to work it would
have to compile the code before it runs so that takes a bit of time.
Mr. Gecko
On Oct 1, 2008, at 1:10 PM, Uli Kusterer wrote:
On 01.10.2008, at 19:51, Mr. Gecko wrote:
Hello I am needing to know how to play a playlist i
You may be able to do what you want with http://www.liquidx.net/eyetunes/
-rob.
On Oct 1, 2008, at 2:10 PM, Uli Kusterer wrote:
On 01.10.2008, at 19:51, Mr. Gecko wrote:
Hello I am needing to know how to play a playlist in iTunes using
AppleEvents. I am able to get the Playlist ID and the
On Oct 1, 2008, at 12:07 PM, Loren Ryter wrote:
You can't play a playlist. You have to play a track on it -- either
the
first track or a random track.
Sure you can. See my response to the OP; that AppleScript certainly
started playing the tracks in the playlist with specifying a specific
On 01.10.2008, at 19:51, Mr. Gecko wrote:
Hello I am needing to know how to play a playlist in iTunes using
AppleEvents. I am able to get the Playlist ID and the Playlist
Persistent ID from the iTunes Database. I just need to know how to
tell iTunes to play it.
'Scripting Bridge', or if
You can't play a playlist. You have to play a track on it -- either the
first track or a random track.
On 10/1/08 1:51 PM, "Mr. Gecko" <[EMAIL PROTECTED]> wrote:
> Hello I am needing to know how to play a playlist in iTunes using
> AppleEvents. I am able to get the Playlist ID and the Playlist
>
On Oct 1, 2008, at 11:51 AM, Mr. Gecko wrote:
Hello I am needing to know how to play a playlist in iTunes using
AppleEvents. I am able to get the Playlist ID and the Playlist
Persistent ID from the iTunes Database. I just need to know how to
tell iTunes to play it.
Did you look at the iTu
Hello I am needing to know how to play a playlist in iTunes using
AppleEvents. I am able to get the Playlist ID and the Playlist
Persistent ID from the iTunes Database. I just need to know how to
tell iTunes to play it.
Thanks for help/tips,
Mr. Gecko
___
28 matches
Mail list logo