Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

add Finder items of folder to Toast

 
   Mac (Home) -> Apple Scripts RSS
Next:  Search multiple job sites for you!  
Author Message
Tobias Weber

External


Since: Jan 02, 2006
Posts: 196



(Msg. 1) Posted: Wed Jul 20, 2005 11:30 am
Post subject: add Finder items of folder to Toast
Archived from groups: alt>comp>lang>applescript (more info?)

Hi,
the following errors because Finder classes can't be converted for Toast:

tell application "Finder"
set sourceItems to a reference to (items of folder sourceFolderPath)
end
tell application "Toast 6 Titanium"
add to current disc items sourceItems
end tell

Using "as alias list" or looping with "as alias" doesn't change anything.

I can't change the format of sourceItems because FinderSort() expects it
this way.

--
Tobias Weber
Back to top
Login to vote
qitty qat

External


Since: Jul 20, 2005
Posts: 4



(Msg. 2) Posted: Wed Jul 20, 2005 6:02 pm
Post subject: Re: add Finder items of folder to Toast [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi:

Haven't tested this lately, but check it out:

--------------
set fd to (choose folder with prompt "select folder of mpgs:")
set thefiles to list folder fd without invisibles

tell application "Toast 6 Titanium"
repeat with afile in thefiles
set thisFile to ((fd & afile) as text)
add to Video disc items ((thisFile as alias) as list)

end repeat
end tell

tell me to activate
beep 2

-------------

The files are added in filename order.

q














In article <towb-28240E.11301020072005.DeleteThis@news.1und1.de>, Tobias Weber
<towb.DeleteThis@gmx.net> wrote:

> Hi,
> the following errors because Finder classes can't be converted for Toast:
>
> tell application "Finder"
> set sourceItems to a reference to (items of folder sourceFolderPath)
> end
> tell application "Toast 6 Titanium"
> add to current disc items sourceItems
> end tell
>
> Using "as alias list" or looping with "as alias" doesn't change anything.
>
> I can't change the format of sourceItems because FinderSort() expects it
> this way.
Back to top
Login to vote
Tobias Weber

External


Since: Jan 02, 2006
Posts: 196



(Msg. 3) Posted: Thu Jul 21, 2005 10:44 am
Post subject: Re: add Finder items of folder to Toast [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <200720051802298538%qittyqat@nothere.com>,
qitty qat <qittyqat.TakeThisOut@nothere.com> wrote:

> Haven't tested this lately, but check it out:

Your're script works, but I can't use "list folder".

However, it gave me the idea of converting a finder item to text and
making an alias out of that path:

set sourceList to {}
repeat with sourceItem in sourceItems
set end of sourceList to ((sourceItem as string) as alias)
end repeat
tell application "Toast 6 Titanium"
add to current disc items sourceList
end tell

Which does the job Smile

--
Tobias Weber
Back to top
Login to vote
qitty qat

External


Since: Jul 20, 2005
Posts: 4



(Msg. 4) Posted: Thu Jul 21, 2005 8:20 pm
Post subject: Re: add Finder items of folder to Toast [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

qoool!




In article <towb-B2BE58.10443521072005.DeleteThis@news.1und1.de>, Tobias Weber
<towb.DeleteThis@gmx.net> wrote:

> In article <200720051802298538%qittyqat@nothere.com>,
> qitty qat <qittyqat.DeleteThis@nothere.com> wrote:
>
> > Haven't tested this lately, but check it out:
>
> Your're script works, but I can't use "list folder".
>
> However, it gave me the idea of converting a finder item to text and
> making an alias out of that path:
>
> set sourceList to {}
> repeat with sourceItem in sourceItems
> set end of sourceList to ((sourceItem as string) as alias)
> end repeat
> tell application "Toast 6 Titanium"
> add to current disc items sourceList
> end tell
>
> Which does the job Smile
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Finder, get name - Hello all - I've got a script that uploads the selected file in the finder to a specified ftp space I own. What I want to do is, after the file is uploaded, the full URL is copied to the clipboard or put in a new text file so that I can easily put it in...

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

Finder scripting sluggish? - Since I updated to 10.4.11, the following command, which used to run in an imperceptible amount of time, now takes several seconds on my dual 2.5 GHz G5: tell application "Finder" to get processes Anyone able to reproduce this? -- Jerry Kin...

Adding New Folder - Below is script that I need to create a new folder in the same folder as the location of the script. It runs and compiles but the folder is never created. I have checked other areas and no folder is created at all even though I don't get an error from....

Desktop folder - Hi, How to obtain the name of the current user ? (to access to his desktop folder) ? Thanks in advance MS
       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