FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Add to Party Shuffle

 
   Mac (Home) -> Apple Scripts RSS
Related Topics:
scripting Quicktime to convert images to jpg - Here is a droplet that I am working on to have Quicktime translate still images generated by iMovie into JPG images that can be imported into iPhoto. on open (theList) tell repeat with x in theList if

Help with script, please - Here is the script: tell set foo to the selection set foo to item 1 of foo set address_ to address of item 1 of to recipient of foo if not (name of item 1 of to recipient of foo exists) then set text..

Finder label texts - Hi, it's easy to get a file's label *number*: set f to (choose file) tell get label index of f --as text end tell But how do I get the text? By somehow reading the Finder -- Tobias Weber

Open a file in PhotoshopCS - I would open an image with photoshop and do some action. I try this 2 scripts: set the to (choose folder) as string tell set fileList to name of every file of folder as list end tell repeat with..

update applescript - I am only now practiced enough in that some anomalies in the language are bugging me. In looking for one of the first documents I read was the Apple web page listing all the bugs in version 1.9.1. I have version 1.9.1 on osx..
Next:  Apple Scripts: Simple Syntax Problem...  
Author Message
fursten

External


Since: Aug 25, 2008
Posts: 1



(Msg. 1) Posted: Mon Aug 25, 2008 3:30 pm
Post subject: Add to Party Shuffle
Archived from groups: alt>comp>lang>applescript (more info?)

Hi,

I'm trying to write a script that given a file adds it in Party
Shuffle (in iTunes).

It looks like this

on open argv
tell application "iTunes"
set theParty to some playlist whose special kind is Party Shuffle
repeat with thisFile in argv
add thisFile to thePosition of theParty
end repeat
end tell
end open

Unfortunately it doesn't work... I'm pretty sure it did work before,
but no more. I get the error message: "Item 1 {alias "filename.mp3"}
doesn't understand the «event hookAdd» message." Soo, what does that
mean? I have no idea, do you?

- Mårten
Back to top
Login to vote
Jolly Roger

External


Since: Nov 05, 2007
Posts: 471



(Msg. 2) Posted: Mon Aug 25, 2008 6:02 pm
Post subject: Re: Add to Party Shuffle [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<e972b1b5-848e-43b8-bda4-1579c07557b0.TakeThisOut@f63g2000hsf.googlegroups.com>,
fursten <msvantesson.TakeThisOut@gmail.com> wrote:

> I'm trying to write a script that given a file adds it in Party
> Shuffle (in iTunes).
>
> It looks like this
>
> on open argv
> tell application "iTunes"
> set theParty to some playlist whose special kind is Party Shuffle
> repeat with thisFile in argv
> add thisFile to thePosition of theParty
> end repeat
> end tell
> end open
>
> Unfortunately it doesn't work... I'm pretty sure it did work before,
> but no more. I get the error message: "Item 1 {alias "filename.mp3"}
> doesn't understand the «event hookAdd» message." Soo, what does that
> mean? I have no idea, do you?

Is that really the *entire* script? I notice "thePosition" is
undefined, which will definitey cause problems.

If you don't care about the position in the play list, just change that
line to:

add thisFile to theParty

If you *do* care about the position, you'll need to set "thePosition" to
a relevant number inicating the position you want iTunes to insert the
tune in the play list.

--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
Back to top
Login to vote
Display posts from previous:   
       Mac (Home) -> Apple Scripts All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact