Need workaround for AppleScripts Running

I recently upgraded to Mavericks on my MacBook Pro. Now I am trying to use software that is requesting AppleScript Runner. I understand it is no longer supported in Mavericks. Is there a workaround that will let me use my software? [Software: Wiley CulinarE - Companion 4]
I saw the scripting thread on this online, but I am not a programmer or a proficient computer geek, so if you are going to recommend script, please give me step-by-step instructions on how to access the script and change it. I am such a novice!
Thanks for your help!

I was able to access the two script packages contained in the application. I think the second set of script is the one that applies to this issue.... The first one is:
on run argv
          tell application "AppleScript Utility"
                    set error_message to ""
                    try
                              if ((count of argv) is 0) then
                                        tell me to syslogger("ff.script", "no arguments")
                                        return "no arguments"
                              end if
                    on error the errmsg number the errn
                              tell me to syslogger("ff.script", "no arguments")
                              return errmsg
                    end try
                    set myUrl to item 1 of argv
                    tell application "System Events"
                              if not ((exists process "Firefox") or (exists process "firefox-bin")) then
                                        tell me to syslogger("ff.script", "not exists process Firefox")
                                        return "no url. Firefox does not exist"
  --return myUrl
                              end if
                    end tell
  --set myUrl to "http://127.0.0.1:49470/"
                    tell application "Firefox"
  --activate
                              try
                                        set numTabs to 0
  -- Get URLs of all tabs
                                        set urlList to {}
                                        set numWindows to count of windows
  --display dialog "numWindows = " & (numWindows as string)
                                        if (numWindows = 0) then
                                                  tell me to syslogger("ff.script", " no url. Firefox is not runing")
                                                  return "no url Firefox is not runing"
                                        else
                                                  repeat with w from 1 to numWindows
                                                            try
  --display dialog w as string
                                                                      properties of window w
                                                            on error the errmsg number the errn
  --beep 1
  --return properties
  --return myUrl
                                                            end try
                                                  end repeat
                                        end if
                              on error the errmsg number the errn
                                        tell me to syslogger("ff.script", errmsg & " error = " & (errn as string))
                                        return errmsg
  display dialog errmsg buttons {"OK"} default button 1
                              end try
                    end tell
  --return
                    tell me to set user_dir to system attribute "HOME"
  --set myUrl to "http://127.0.0.1:49395"
                    tell me to set profile_ini to user_dir & "/Library/Application Support/Firefox/profiles.ini"
  --display dialog profile_ini
                    tell me to set bbb to CheckIfExists(profile_ini)
                    if not bbb then
  --if not CheckIfExists(profile_ini) then
                              «event panSdlog» profile_ini & " does not exist"
                    end if
                    tell me to set file_content to ReadAFile(profile_ini)
  --display dialog file_content
                    tell me to set profile_file to getProperties(file_content, "Path")
                    tell me to set sessionstore_file to user_dir & "/Library/Application Support/Firefox/" & profile_file & "/sessionstore.js"
  --display dialog sessionstore_file
                    tell me to set parent_file to user_dir & "/Library/Application Support/Firefox/" & profile_file & "/.parentlock"
                    tell me to set bbb to CheckIfExists(parent_file)
                    if not bbb then
  --if not CheckIfExists(parent_file) then
                              «event panSdlog» parent_file & " does not exist. Firefos does not work"
                              return "no parentlock"
                    end if
                    tell me to set bbb to CheckIfExists(sessionstore_file)
                    if not bbb then
  --if not CheckIfExists(sessionstore_file) then
                              «event panSdlog» sessionstore_file & " does not exist"
                              return "no sessionstore.js"
                    end if
                    tell me to set store_content to ReadAFile(sessionstore_file)
  --display dialog store_content
                    tell me to set newFFformat to 0
                    tell me to set strWindows to "{windows:[]"
                    tell me to set strTabs to "{tabs:["
                    tell me to set strClosedTabs to "_closedTabs:["
                    tell me to set prefics to "{url:\""
                    tell me to set suffics to "\","
  --set prefics to "entries:[{url:\""
  --set suffics to "\", children:["
                    if (store_content contains "{\"tabs\":[") then
  --display dialog "new format"
                              tell me to set newFFformat to 1
                              tell me to set strTabs to "{\"tabs\":["
                              tell me to set strClosedTabs to "\"_closedTabs\":["
                              tell me to set prefics to "{\"url\":\""
                              tell me to set strWindows to "{\"windows\":[]"
                    end if
                    if (store_content contains strWindows) then
  --display dialog strWindows
                              tell me to syslogger("ff.script", "sessionstore file contains " & strWindows)
                              return "no url"
                    end if
  --display dialog (store_content)
                    tell me to set content_list to splitText(strTabs as Unicode text, store_content as Unicode text)
  --display dialog (content_list as Unicode text)
  --set length_list to number of items of (content_list)
                    set length_list to count of content_list
  --return (number of items of (content_list))
  --display dialog (length_list as Unicode text)
                    if (length_list < 2) then
                              tell me to syslogger("ff.script", "Error in the sessionstore.js")
  --display dialog "Error in the " & sessionstore_file
                              return "Error in the sessionstore.js"
                    end if
                    repeat with i from 2 to (length_list)
                              tell me to set content_listItem to ((item (i) of content_list) as Unicode text)
  --display dialog "wnd " & i as string
                              tell me to set window_list to splitText(strClosedTabs as Unicode text, content_listItem as Unicode text)
                              set length_window_list to count of window_list
  --display dialog (length_window_list as Unicode text)
                              if (length_window_list = 2) then
                                        tell me to set openedTabs to ((item (1) of window_list) as Unicode text)
                                        tell me to set closedTabs to ((item (2) of window_list) as Unicode text)
                                        tell me to set opened_tabs_list to splitText(prefics, openedTabs)
                                        repeat with j from 1 to (count of opened_tabs_list)
                                                  tell me to set url_item to ((item (j) of opened_tabs_list) as Unicode text)
  --display dialog url_item
                                                  if (url_item begins with myUrl) then
                                                            tell me to set pos to offset of suffics in url_item
                                                            if (pos > 0) then
  --display dialog (pos as string)
                                                                      tell me to set full_url to "" & (get characters 1 thru pos of url_item)
  --display dialog full_url
  --display dialog closedTabs
                                                                      if (closedTabs does not contain full_url) then --not closed yet
  --display dialog "wnd " & i as string
                                                                                return myUrl
                                                                      end if
                                                            end if
                                                  end if
                                        end repeat
                              end if
                    end repeat
                    if (length of error_message > 0) then
                              tell me to syslogger("ff.script", error_message)
                    end if
                    tell me to syslogger("ff.script", "return \"no url\"")
                    return "no url"
          end tell
end run
------------------  functions ------------------------------------
on ReadAFile(filePath)
          tell me to set str to "cat " & "\"" & filePath & "\""
          tell application "Finder"
                    tell me to set filecontent to do shell script str
          end tell
          return filecontent
end ReadAFile
on CheckIfExists(filePath)
          tell application "Finder"
                    tell me to set folder_cmd to ("find \"" & filePath & "\"")
                    try
  do shell script folder_cmd
                              tell me to set worked to true
                    on error
                              tell me to set worked to false
                    end try
          end tell
          return worked
end CheckIfExists
on getProperties(content, property_name)
          tell me to set property_str to ""
          tell me to set property_list to split_paragraphs(content)
          tell me to set number_depart to 0
          repeat with theItem in property_list
                    if theItem as string is not "" then
  --display dialog theItem
                              tell me to set items_list to splitText("=", theItem)
  --set count to number of items in items_list
                              if number of items in items_list is greater than 1 then
  --property_name is in contents of (item 2 of items_list as string)
                                        if ((item 1 of items_list as string) = property_name) then
                                                  tell me to set property_str to (item 2 of items_list as string)
  --display dialog property_str
                                        end if
                                        if ((item 1 of items_list as string) = "Default" and (item 2 of items_list as string) = "1") then
  --set property_str to (item 2 of items_list as string)
  --display dialog property_str
                                                  exit repeat
                                        end if
  --display dialog property_str
                              end if
                    end if
          end repeat
--display dialog property_str
          return property_str
end getProperties
on split_paragraphs(someText)
          tell me to set oldDelims to AppleScript's text item delimiters
          set AppleScript's text item delimiters to {return}
          tell me to set TheItems to text items of someText
          repeat with theItem in TheItems
                    if theItem as string is not "" then
                              display dialog theItem
                    end if
          end repeat
          tell me to set AppleScript's text item delimiters to oldDelims
          return TheItems
end split_paragraphs
on splitText(delimiter, someText)
--display dialog (delimiter & "   " & someText)
          tell me to set prevTIDs to AppleScript's text item delimiters
          set AppleScript's text item delimiters to delimiter
          tell me to set output to text items of someText
          set AppleScript's text item delimiters to prevTIDs
          return output
end splitText
on subString(the_string, start_index, end_index)
          return "" & (get characters start_index thru end_index of the_string)
end subString
to searchReplace(thisText, searchTerm, replacement)
          set AppleScript's text item delimiters to searchTerm
          tell me to set thisText to thisText's text items
          set AppleScript's text item delimiters to replacement
          tell me to set thisText to "" & thisText
          set AppleScript's text item delimiters to {""}
          return thisText
end searchReplace
(* Logs a message to the system log (which you can monitor in Console.app). The msg is tagged with a given sender. *)
on syslogger(sender, msg)
          if (length of msg is greater than 1500) then
                    tell me to set msg to (text 1 thru 500 of msg) & " <snip> *** Sorry, Message > 1500 chars will not be reliably logged by BSD's 'logger'."
          end if
          tell me to set cmd to "logger -t " & quoted form of sender & " " & quoted form of msg
do shell script cmd
end syslogger
THE SECOND ONE IS:
on run argv
          tell application "AppleScript Runner.app"
  --display dialog "++++++++"
                    tell me to set error_message to ""
                    try
  --tell me to log "no arguments"
  --display dialog "++22++++"
                              if ((count of argv) is 0) then
                                        tell me to syslogger("sf.script", "no arguments")
                                        return "no arguments"
                              end if
                    on error the errmsg number the errn
                              tell me to set error_message to "no arguments"
                              tell me to syslogger("sf.script", "no arguments")
                              return errmsg
                    end try
                    tell me to set urlArgv to item 1 of argv
  --display dialog urlArgv
  --set urlArgv to "http://127.0.0.1:49651/"
                    tell me to set res to 0
                    tell application "System Events"
                              if not (exists process "Safari") then
                                        tell me to syslogger("sf.script", "not exists process Safari")
                                        return "no url"
                              end if
                    end tell
                    tell application "Safari"
  --activate
                              try
                                        tell me to set numTabs to 0
  -- Get URLs of all tabs
                                        tell me to set urlList to {}
                                        set numDocs to (count of document)
                                        set numWnd to (count of window)
  --display dialog "Count wnd = " & (numWnd as string)
                                        repeat with w from 1 to numWnd
  --display dialog "Curent Wnd = " & (numWnd as string)
                                                  try
                                                            set numTabs to count of tab of window w
  --display dialog "Count Tab = " & (numTabs as Unicode text)
                                                            repeat with t from 1 to numTabs
                                                                      try
                                                                                set tabURL to (URL of item t of tabs of window w)
  --display dialog tabURL
                                                                                if (tabURL contains urlArgv) then
  --display dialog urlArgv
  --tell me to syslogger("sf.script", urlArgv)
                                                                                          return urlArgv
                                                                                end if
                                                                      on error
                                                                                tell me to set error_message to ("error  with tab = " & (t as string) & "   " & errmsg)
                                                                                tell me to syslogger("sf.script", "error  with tab = " & (t as string) & "   " & errmsg)
                                                                      end try
                                                            end repeat
                                                  on error the errmsg number the errn
                                                            tell me to set error_message to ("error  with wnd = " & (w as string) & "   " & errmsg)
                                                            tell me to syslogger("sf.script", "error  with wnd = " & (w as string) & "   " & errmsg)
                                                  end try
                                        end repeat
                              on error the errmsg number the errn
                                        if errn is -1708 then
  --display dialog (errmsg & "  error = " & (errn as string)) buttons {"OK"} default button 1
                                                  tell me to syslogger("sf.script", errmsg & "  error = " & (errn as string))
                                                  return urlArgv
  --return "no url"
                                        end if
                                        tell me to set error_message to (errmsg & "  error = " & (errn as string))
                                        tell me to syslogger("sf.script", errmsg & "  error = " & (errn as string))
  --display dialog errmsg buttons {"OK"} default button 1
                              end try
                    end tell
                    if (length of error_message > 0) then
                              tell me to syslogger("sf.script", error_message)
                    end if
                    tell me to syslogger("sf.script", "return \"no url\"")
                    return "no url"
          end tell
end run
(* Logs a message to the system log (which you can monitor in Console.app). The msg is tagged with a given sender. *)
on syslogger(sender, msg)
          try
                    if (length of msg is greater than 1500) then
                              set msg to (text 1 thru 500 of msg) & " <snip> *** Sorry, Message > 1500 chars will not be reliably logged by BSD's 'logger'."
                    end if
                    set cmd to "logger -t " & quoted form of sender & " " & quoted form of msg
  do shell script cmd
          on error the errmsg number the errn
          end try
end syslogger

Similar Messages

  • Need clarification for MRP Run

    Dear SAP Guru,
    Need the clarification for MRP Run:
    1.At the time of MRP Run what is the status function for - shipping notification?
    2.First i have run the mrp planning mode is normal after that i have some changes in material master , so planning mode is - RE Explode planning & Bom ? AT THE TIME OF MRP RUN  it is correct
    3.In background MRP Run at MDBT - what is the PLANNING MODE ?
    4. How will work on automatic PO Create through MRP Run PR\S.?
    Kindly give me the feedback , i am waiting for your reply.
    Thanks,
    Uma

    Hello Uma
    1 - A shipping notification is a confirmation from the vendor that the material has been shipped.
    2 - When you change your BOM or material master MRP settings, system automatically set a flag on the planning file to re-explode the BOM. Therefore, MRP automatically re-explode the BOM, even with planning mode 1. Planning mode 2 is only necessary when you need to force a new BOM explosion and I don't recommend you to use it frequently, as it may lead to performance issues. See my document MRP: Why shouldn’t I use planning mode 3 on a productive system? for more details.
    3 - See notes 206666 MRP: Control parameters during planning and 135788 - Planning mode in material requirements planning.
    4 - MRP does not create or change purchase orders or production orders. MRP can only create planned orders, purchase requisitions or schedule lines.
    At last, I wrote the following document with links to the MRP FAQ notes, which may be helpful to you:
    MRP: Frequently Asked Questions
    BR
    Caetano

  • Need Workaround for periodical autocommit in WebForms without using Timer

    Hi guys...
    I need to use autocommit in my form for say 1 min.
    As ther is a great performance degradation when i go for timers, i need a workaround to achieve the same functionality without using timers.
    Thanx & Regards
    Sriram

    <p>Get this zip file
    <br><br>
    unzip the file<br>
    copy the bean_timer.jar in your <forms_home>/java directory<br>
    update your formsweb.cfg configuration file<br>
    archive_jini=f90all_jinit.jar,...,bean_timer.jar<br><br>
    open, compile and run the beantimer.fmb sample demo
    <br>
    </p>
    Francois

  • Need workaround for continued failed update?

    I haven't been able to get Dreamweaver to successfully update for quite some time. There's no detail to the error message, just a generic statement that it didn't complete the process. Screen capture below. What's my next step?

    Have you tried downloading the update manually and then installing it manually?  The download link is this one:
    <http://download.macromedia.com/pub/dreamweaver/updates/cs5/11_0_4/win/AdobeDreamweaver-11- 0-All-Update.zip>
    You may need to restart your machine after you have applied the updates for changes to take place.
    hth

  • Need workaround for a MV

    Hi All,
    I am facing one issue while creating a mv. The source for this mv contains more then 1.75 billions records. This source table contain a column TEXT VARCHAR2(2000). If I tried to create without that column mv gets created but with column it is giving error of like "UNABLE TO EXTENTS THE SPACE BY " I increased the temp tablespace size to 15 gb on both souce and destination end but still issue is not resolve.
    Then I created that mv view 5000000 records and now my issue is anyhow put those remaining record into mv table.
    Any workaround or any suggestion is greatful.

    If this is MV was something that was going to be refreshed periodically, what you could do is create a pl/sql script (or procedure) that you could schedule that would reload this table. You could try doing an insert select to see if that would work but my guess would be that it would still fail with the space constraint. You could also do bulk collection and insert groups of records that way and commit every million records or whatever works best for your environment. Thats a pretty good size table.

  • I annoct empty my cache even using tools and tried Norton, need it for farmville, running really slow for over a week.

    I ave tried to uninstall twice and the second time removed everything and started over completely, went right to Farmville with same results, then went to tools to see if it would empty and would not. Is there any way to manually empty the cache, was really impressed with Firefox when I started using it, this is the only problem, unfortunately for me a big one.
    == as soon as I started using it.

    i have d same problem with pet forest.keep saying please empty your cache..i empty it for many times but the same message i receive..

  • Can anyone recommend a portable USB 3.0 drive with hardware encryption, compatible with OSX and Windows 7.  I need it for my MacBook Pro 13", 2012, running Mountain Lion

    Can anyone recommend a portable USB 3.0 drive with hardware encryption, compatible with OSX Mountain Lion and Windows 7.  I need it for my MacBook Pro 13”, 2012, running Mountain Lion & Windows 7 Ultimate - BootCamp.  I’ve heard that the Buffalo MiniStation Encryption does not work with OSX, is that true..?  I'd like it to work with both operating systems, using the built in hardware encryption.  Thanks

    This article may help: A flashing question mark appears when you start your Mac.

  • I've installed bootcamp 4.0 on my iMac 27. Everything works superb, but for playing need for speed run or battlefield 3 I need catalyst driver 11.7 or higher. How can I update my graphics? Is there a possibility except waiting for a new bootcamp version?

    I've installed bootcamp 4.0 on my iMac 27. Everything works superb, but for playing need for speed run or battlefield 3 I need catalyst driver 11.7 or higher. How can I update my graphics? Is there a possibility except waiting for a new bootcamp version?

    But how do you install the drivers if Bootcamp is running interference?
    Bottom line, I'ev tried to install three different versions of updated ATI driver sover the last few momnths and on each and every occassion have ended up with the original Bootcamp driver. A number of current games are unplayable on a Mac running Bootcamp as a result.
    And if I can't run the software I want, then Bootcamp is as useless as boobs on a bull.

  • Need steps for rehosting FR currently running on windows 2008 R2 to LinuxOS

    Need steps for rehosting FR server currently running on windows 2008 R2 to Oracle Linux 5 OS
    I found something for essbase in oracle EPM whitepaper library but not for FR. Did anyone of you out there try this.
    Any ideas/thoughts.
    Thanks in Advance

    If it's 11.1.2.1 or 11.1.2.2 you simply install it in the new host, configure it and you can either manually edit the mod_wl.conf file to point to the new server or you can re-run the web server (OHS) configuration wherever it is installed. Beware though that if you do this you will not be able to run FR against HFM.
    Pablo

  • After installing Lion the microsoft office programs do not run!  What can I do as I need them for external communication?

    After installing Lion the microsoft office programs (word, excel,...) do not run!  What can I do as I need them for external communication?

    There are also free alternatives such as Neo Office.
    You can also install the Office 2011 30 day trial if it's urgent.

  • I need help with AppleScript for changing the font on numerous PowerCADD files

    I am currently trying to write an AppleScript, but I really have no idea how one is written.  I have looked up many tutorials, but to no avail.
    What I'm trying to so is write a script that will take all my selected PowerCADD files, open them, change the font to Helvetica, then save the file.  I have over a thousand files to do this to.  So, you can see my need of an AppleScript to get this task completed.
    If anyone out there knows how I would write this script, please submit it here.
    Thank you so much for your time and help.

    If anyone could help, that would be awesome  =)

  • Is there any fix or workarounds for flash to run on an iPad?

    Is there any fix or workarounds for flash to run on an iPad, I have an interface that works on a USB and now wants to use dropbox to distrubute the interface. Can anyone help?

    Hi,
    It's worth looking at Puffin Browser (http://www.puffinbrowser.com) - it runs Flash Player 11.2 in the cloud, so you can access Flash through your iPhone or iPad.
    Hopefully they'll update their FP soon
    Simon

  • Workaround for scanner for HP 3055 running OSX Lion 10.7?

    Do you have a workaround for the HP Laserjet 3055/3050 all-in-one scanning ability for Mac OSX Lion 10.7?
    I am hitting the wall trying to find out how to enable the scanner to work?
    This question was solved.
    View Solution.

    You may try the following workaround, although i cannot guarantee it will work and may not be stable as expected:
    Enter System Preferences > Print & Scan, select the 3050 printer ant then click the Minus sign to remove it.
    Download the Mac OS 10.5 installation below by clicking the download button:
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=18...
    Make sure to skip the Setup Assistant and follow the steps till the installation completes.
    Perform the following steps in order to provide the Setup Assistant the right permissions to complete on Lion:
    1. From the Utilities folder, open the Terminal
    2. Type “sudo “ (with space) in the Terminal.
    3. Locate the HP Setup Assistant in folder Applications/HP LaserJet Software
    4. Right-click (Or CTRL + Letf click from the Apple keyoard) the HP Setup Assistant and choose “Show Package Contents”.
    5. Open the “Contents” folder and then the “MacOS” folder. It should contain the Unix Executable File of HP Setup Assistant.
    6. Drag the HP Setup Assistant (Unix Executable File) into the Terminal and press enter. Terminal will ask for the password of the user.
    7. After writing the password press Enter Button.
    Now follow the Setup Assistant Steps to complete.
    Good luck,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Suggested workaround for list itemrenderer bug?

    Can someone point me in the right direction for a workaround for the problem described as Flex bug 28191:
    https://bugs.adobe.com/jira/browse/SDK-28191
    Steps to reproduce:
    1. Populate a Tree/List with data and provide a custom itemRenderer class factory.
    2. Change the class factory and dataProvider at the same time.
    3. List.createItemRenderer() will crash during since Factory is the key and it has been changed.
                    delete freeItemRenderersByFactory[factory][renderer];
    Actual Results:
    Crash because the renderer can not be found since it does not exist on that factory dictionary since the class factory was changed and the lookup is using the new factory.
    Expected Results:
    Not crash.
    Seems like a race condition, as sometimes during this process it skips that block of code but in other cases it falls into this block and fails.
    I need to change the data provider and item renderer of a tree control at runtime. Is there one or more methods I should run to prevent this? As the bug notes state, this is an intermittent problem. The error occurs here:
    if (factory == itemRenderer)
                if (freeItemRenderers && freeItemRenderers.length)
                    renderer = freeItemRenderers.pop();
                    delete freeItemRenderersByFactory[factory][renderer];

    Thanks. Actually, I have been updating (not setting or changing) the tree's dataprovider, and then changing the classFactory like this:
    processesXML = event.result as XML;
    nodeTreeData.source = processesXML.children();
    if (treeMultiSelect)
    nodeTree.itemRenderer=new ClassFactory(renderers.TreeItemRendererV1);
    nodeTree.allowMultipleSelection = true;
    nodeTree.setStyle("selectionColor", "0xFFFFFF");
    nodeTree.setStyle("disclosureOpenIcon", MinusIcon);
    nodeTree.setStyle("disclosureClosedIcon", PlusIcon);
    else
    nodeTree.itemRenderer=new ClassFactory(mx.controls.treeClasses.TreeItemRenderer);
    nodeTree.allowMultipleSelection = false;
    nodeTree.setStyle("selectionColor", "0x7FCEFF");
    nodeTree.setStyle("disclosureOpenIcon", OpenArrowIcon);
    nodeTree.setStyle("disclosureClosedIcon", ClosedArrowIcon);
    I had tried using validateNow after changing the ClassFactory before but did get the error again. I will try it again but update the data provider after. Since it's an intermittent error I'm finding it hard to know if a fix is really working.

  • What is the best practice for AppleScript deployment on several machines?

    Hi,
    I am developing some AppleScripts for my colleagues at work and I don't want to visit each of them to deploy my AppleScript on their Macs.
    So, what is the best practice for AppleScript deployment on several machines?
    Is there an installer created by the Automator available?
    I would like to have something like an App to run which puts all my AppleScript relevant files into the right place onto a destination Mac.
    Thanks in advance.
    Regards,

    There's really no 'right place' to put applescripts.  folder action scripts nees to go in ~/Library/Scripts/Folder Action Scripts (or /Library/Scripts/Folder Action Scripts), anything you want to appear in the script menu needs to go in ~/Library/Scripts (or /Library/Scripts), script applications should probably go in the Applications folder, but otherwise scripts can be placed anywhere.  conventional places to put them are in ~/Library/Scripts or in a subfolder of ~/Library/Application Support if they are run by an application.  The more important issue is to make sure you generalize the scripts: use the path to command to get local paths rather than hard-coding them in, make sure you test to make sure applications or unic executables you call are present ont he machine, use script bundles rather tna scripts if you scripts have private resources.
    You can write a quick installer script if you want to make sure scripts go where you want them.  Skeleton verion looks like this:
    set scriptsFolder to path to scripts folder from user domain
    set scriptsToExport to path to resource "xxx.scpt" in directory "yyy"
    tell application "Finder"
      duplicate scriptsToExport to scriptsFolder with replacing
    end tell
    say "Scripts are installed"
    save this as a script application, then open the application pacckage and create a folder called "yyy" in the resources folder and copy your script "xxx.scpt" into it.  other people can run the app to install the script.

Maybe you are looking for