Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Menus like VB
MPEG / ActiveMovie ActiveX control
MPEG Xtra Time Slider
Install-us Pro
bubbleSortForStrings AND bubbleSortForStringLists
Multi lists sorting
Export/Import Text and Filed Members for proofing
change LocZ
qwiScriptStyler
Volume Slider
MediaMacros Xtras Mall
 

 

 

Behavior Add all to the search path

Added on 10/31/2000

 

Compatibilities:
D7 D8 Mac PC Script

Required Xtras:
Buddy API

This item has not yet been rated

Author: MediaMacros (website)

This script adds all fodlers relative tot eh movie to the searchPath to avoid errors of files not being found.

global theD

on addFolders
  if the platForm contains "win" then
    theD = "\"
  else
    theD = ":"
  end if
  --get a list of all folders
  l = []
  readFolders(the moviePath, l)
  the searchPath = l
end

on readFolders whatPath, whatList
  folders = baFolderList(whatPath)
  if folders.count > 0 then
    repeat with x = 1 to folders.count
      path = addD(whatPath) & folders[x]
      whatList.add(path)
      readFolders(path, whatList)      
    end repeat
  end if
end

on addD whatString
  if whatString.char[whatString.char.count] <> theD then
    whatString = whatString & theD
  end if
  return whatString
end

on getBehaviorDescription me
  return "This script adds all folders and sub folders relative to the movie to teh searchPath."
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail