Script Menu and app-specific scripts

Hi There-
i've noticed that I do not have Application-specific scripts in a separate area of the (system-level) Script Menu. I'm running 10.4.7 on a MacBook Pro 2.0/2GB RAM.
I'm referring to a separate area in the Script Menu for Safari, Mail, Finder, and a host of Third-party apps.
I checked permissions on the ~/Library/Scripts directory (and subdirectories), and they are Read/Write.
Any ideas as to why these application-specific areas do not show up on my system? As a result, I'm missing a lot of functionality from many apps (just noticed because of DEVONthink Pro's scripts, which are vital, are not installed on my machine, and can't seem to be installed).
Thanks!
macbookpro2.0, imacg5, tibook800, (many omitted)... Apple IIe   Mac OS X (10.4)  

You could also be running "FastScripts" (http://www.red-sweater.com/fastscripts/index.html) which will do what you want and more...
Hppe this helps
Power Mac G4 MDD Dual 837 Mhz / MacBook Pro 17"   Mac OS X (10.4.7)  

Similar Messages

  • Why is the Executable class only available in Script Task and not in Script Component.

    Why is the Executable class only available in Script Task and not in Script Component.
    Here is a link to the Executable class documentation.
    http://technet.microsoft.com/en-us/library/microsoft.sqlserver.dts.runtime.executable.aspx
    Mr Shaw

    Because Executables are available only in Control Flow. Script Task is a control flow component whreas Script Component is a data flow component. It works on data buffer and rows and not on executables.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • OS X Scripts Menu vs. ID Scripts Palette

    I can access the scripts of all my applications via the scripts menu
    in my OS X menu bar, but I can't put the original Scripts Panel folder
    in Library > Scripts and an alias in the ID Scripts folder because
    then the scripts don't appear in the scripts palette. I can put an
    alias of the Scripts Palette folder in Library > Scripts and this
    allows access to the ID scripts, but this slows the scripts menu way,
    way down. Anybody know of a way to get the ID scripts into Library >
    Scripts without slowing the scripts menu down or losing access to them
    via the scripts palette?
    Thanks,
    Roy McCoy
    Rotterdam, NL

    Shane Stanley wrote:
    > But you can put an alias to a folder in ID's Scripts Panel folder.
    Thanks! My first reaction was to doubt that I wanted an extra
    folder level there. But then I realized that my scripts are all
    in subfolders of the Scripts Panel folder anyway, so I moved
    all these folders to an InDesign Scripts folder in Library >
    Scripts and then copied aliases back. Bringing the ID scripts
    into the scripts menu also this way causes a delay, but it's
    only slight and the beachball doesn't appear.
    I'm a little curious as to whether it's possible to modify
    the top of the scripts menu or not. Apparently because I wanted
    all my scripts at the computer rather than the user level,
    nothing happens when I select Open [current application] Scripts
    Folder or Open User Scripts Folder. The first doesn't bother me
    because the current app is one of the folders below - i.e., it
    would be redundant if it did work - and the second obviously
    shouldn't bother me since I didn't (and don't) want any User
    Scripts anyway. But it would be nicer if a simple Open Scripts
    Folder command (without the triangle and subchoices) opened
    my main Library > Scripts folder, or, failing that, the two
    presently inactive commands did at least something - if
    Open User Scripts Folder opened Users > Library > Home >
    Preferences > Adobe InDesign > Version 6.0 > en_GB > Scripts >
    Scripts Panel, for example - so I could access my invaluable
    Cocaine.scpt, Heroin.scpt and Marijuana.scpt via this route
    also. :-)
    Most simply put, how do I restore basic functionality to the
    first two lines of the scripts menu? I thought just making sure
    I had a Users > Home > Library > Scripts folder would do it,
    perhaps with some content for this folder being required, but
    I've tried putting various things in it and nothing's worked.
    So maybe it should be named "Scripts Folder"? Or be located
    somewhere else? Or???
    Thanks again,
    Roy McCoy
    Rotterdam, NL

  • Using Google 2FA and app-specific password--can receive but not send

    I'm using Mail to check my Gmail account.  I use 2FA on my Google account and therefore use an app-specific password for Apple Mail.  I receive mail fine (although sometimes the message doesn't get pushed to Mail, it seems...maybe this is a different issue) but I can't send a message.  I get this error: 
    ...but I've already entered my app-specific password and there's nowhere to enter it.  The link in the error message is dead. 

    If you've activated 2-step verification, you need to generate an application-specific password in your Google account and enter it instead of the login password you use on the website.

  • Battery Life and apps - specifically: Whatsapp, Gr...

    Experiment: Smartphone battery life and Web 2.0 applications
    Objective: To determine the battery life of a Nokia Symbian S60v3 {or ^3} phone under the use of web applications, the majority of which are social networking apps.
    Apparatus: Nokia S60v3 FP1 (E90 Communicator, E71, etc) {or ^3 (N8, E7)}, Gravity, Nimbuzz, Nokia Email, Joikuspot, Whatsapp, MXit, BirdStep SmartConnect & Lights On. 3G/GPRS internet connection.
    Method: 
    Install the latest versions of the softwares mentioned, activate Whatsapp (through sms). Use all apps as desired.
    With Nokia Email, set sync period for wake/daytime only, i.e. when you are awake - say 06h45 to 22h45, daily.
    For Network mode, select dual mode (S60v3: Menu/Tools/Settings/Phone/Network; ^3: Menu/Settings/Connectivity/Network)
    At commencement of sleep period (first night), exit all apps. Set your alarm. In the morning, check Log (S60v3: Menu/Log; ^3: Menu/Applications/Tools/Log), scroll across to the list, note all Packet Data connection attempts.
    Use applications at will on day two, shutting down/going offline with those you do not require. If the battery gets flat, charge it, continue to use apps/browsers if you can/need.
    At commencement of sleep (second night), select go offline for Nokia Email (S60v3: Nokia Email {main menu}/Options/Go Offline), exit all others apps. In the morning, check and note Log parameters.
    Repeat steps 4, 5 & 6 with varying Network mode (step 2). In all cases, phone should stay in a non-offline state - people should be able to reach you via phone call or sms at all times.
    Make sure you clear browser cache every night prior to bedtime. You should check Browser (Menu/Web/Options/Clear Privacy Data/Clear Cache). Further, remove or disconnect battery to completely freshen the system.
    Finally, delete Whatsapp, and repeat step number 4.
    Observation: 
    The results for steps 1 to 8, inclusive, are essentially similar, in that access points (S60v3: Menu/Tools/Settings/Connection/Access Points & Menu/Tools/Sett. wizard, alternatively use your service provider to define access points) are activated throughout the sleep period, as follows (13 July 2011):
    Internet .Vodacom(01): 00:38; 00:46; 00:54; 01:03, etc.
    Internet.GPRS: 00:37; 00:41; 00:45; 00:49; 00:52; 00:57: 01:00 , etc.
    Internet.GPRS(Joiku): 00:38; 00:46; 00:54; 01:02 , etc.
    Vlive!: 00:39; 00:47; 00:55 , etc.
    WAP.Vodacom: 00:39; 00:48; 00:53; 00:56 , etc.
    Vlive!Streaming: 00:41; 00:48; 00:56 , etc.
    Vlive!MMS: 00:43; 00:51; 00:58 , etc.
    Internet.Vodacom: 00:37; 00:42; 00:45; 00:50; 00:58; 01:01 , etc.
    BS_Gravity App: 00:41; 00:49; 00:57 , etc.
    BS_Browser: 00:42; 00:50; 00:58 , etc.
     Basically, an app is active throughout the the night. All data connections are outwards, last 5 or 8 seconds, a few last 34 seconds, most receive/transmit zero data, a few receive 1 kB. The final connection was an outward 12 minute 55 second at 05:08 using the Internet.Vodacom access point, sent 65 kB & received 360 kB.
    Upon deletion of Whatsapp, no data connection attempt is made throughout the sleep period.
    Conclusion: There is no way of turning off completely Whatsapp. Further, general phone use throughout the day disguises minute-by-minute data connection attempts by Whatsapp. This is wholly unacceptable app development in light of limited battery development for all smartphone platforms. All other apps installed on these devices have kill switches if you do not wish to continue use. All other apps, including the pricy Gravity, operate within the limits of the battery technology available and within the capabilities of the Symbian system. I do not think the trade off - all-encompassing IM service over sms sacrificing battery life is fair.
    Facts:
    BS_Gravity App & BS_Browser are access points defined in the Birdstep SmartConnect Client for Nokia ESeries phones. It's a client that aggregates normal network operator access points as well as Wi-Fi access points so that you do not have to continuously change access points on apps. BS_Gravity App for Gravity and all other social IM apps, BS_Browser for Web browser and Opera browsers.
    Following deletion of Whatsapp, my E90 is back to around 4 hours battery duration under heavy use, primarily a very active Gravity & Web browser, up from about an hour with Whatsapp.
    I am extremely content with general day to use of my Nokia phones, E90 & N8 alike. The E90 continues great operation, what I'd expect, the N8 covers base primarily browser capability - all other strengths complimentary.
    Joikuspot is a considerable power user for extended use, but this is understandable, as the app gathers and transmits data which requires lots of power - basically, it's like having a 3G connection going boths ways. I'd imagine that any similar app on any competing platform saps power.
    Recommendation: Install an on/off switch on the Whatsapp application. Please. Thank you.
    Symbian connected me to the world, to my dreams.. Thank-you Nokia

    I found unacceptable issues with the software, namely very high battery use. Many consumers will come to Nokia first before they complain to a developer - if indeed they ever do complain there. Use of the app in question paints Nokia batteries in a much harsher light than reality - people should be aware of this before they install the software.
    There's a software issue here (developer x), and a software solution (developer y). The following link explains how to use y to defend from the excesses of x: http://softvision.posterous.com/39438314
    Symbian connected me to the world, to my dreams.. Thank-you Nokia

  • Create SAP Script Style and link to Script

    Hi,
    How to create SAP Script Style through SE72...and how to implement it to Script..
    Means where to implement to Script..for ex. below code is script code of ZMEDRUCK...
    /: INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &EKKO-SPRAS& PARAGRAPH IX
    Please tell me where i use that style...
    Regards.

    Hi.
    Maybe, I think that the purpose of style is to use it with SO10.
    Therefore, it doesn't use it in SAP script.
    SAP script copies with SE71 and changes.

  • Loading scripts - what's the difference between loading into edge via script window and including a script in the html document?

    I have a html page that loading in two edge compositions and an external custom javascript file. The javacsript file includes the bootstrapCallback so I can store references to the loaded compositions and can communicate with them. This seems to work well. The problem have is when I also try and load in a custom plugin javascript files into the edge compositions via the script window inside edge - I don't understand how this works, for example if I load in a custom javascript file into one of the compositions can only that composition use it's funcitionality? Is loading in scripts via edge script window the same as including in html document, I'm confused how the two relate, please help me understand.

    I have a html page that loading in two edge compositions and an external custom javascript file. The javacsript file includes the bootstrapCallback so I can store references to the loaded compositions and can communicate with them. This seems to work well. The problem have is when I also try and load in a custom plugin javascript files into the edge compositions via the script window inside edge - I don't understand how this works, for example if I load in a custom javascript file into one of the compositions can only that composition use it's funcitionality? Is loading in scripts via edge script window the same as including in html document, I'm confused how the two relate, please help me understand.

  • Changing font size in toolbar menu and apps

    How can I increase the font size in my toolbar and in things like iPhoto? It's so small on my big screen that it hurts my eyes to read it.

    I am not sure if you can change that, but you could try adjusting the monitor resolution to make toolbars appear bigger.
    To do this, go to System Preferences > Displays. Under resolution, select one smaller than your current one. The current one will be selected in the list.

  • Some sample Applescripts are missing from Script menu.

    I am a new to AppleScript and I have just started reading A Beginner's Guide to Apple Script (by Guy Hart-Davis). The book makes numerous references to the default example scripts that are created during OS X install. I have added the script menu to to the menu bar and when I open the script menu - I only see about half of the default scripts that are shown in the book. I did some browsing and found other examples of the script menu which shows fewer scripts than the example in the book - but still shows a few more than what I am seeing on my system. On my system I do not see the following scripts (Address Book Scripts, Basics, Finder Scripts, Info Scripts, Internet Services, Navigation Scripts, URL's or Virtual PC Scripts). I am on SL 10.6.2. The book is written for SL 10.6 - but also makes references to Leopard 10.5. Is there something wrong with my system or were some of these default scripts eliminated in 10.6.2. My iMac came with 10.6.1 initially - so I have no prior OS version as a point of reference. My concern is that I progress with the lessons and exercises in the book - that there will be continued references to these missing scripts - as I suspect that the missing scripts may be used as a starting point for creating new scripts. Any idea where I can find the scripts that I listed as missing?

    Thanks. The book I am using appears to be a brand new book just released a month ago (or so). It appears the book may have been written for Leopard and tweaked for Snow Leopard (but under the guise of being the other way around) - without actually verifying that the examples for Snow Leopard actually work. The website for the book (McGraw Hill) does not seem to provide a mechanism for providing feedback or errata info. So far these missing scripts have not hampered my progress - except on the initial example. I was more concerned that something was missing from my iMac.

  • Any way to write code to cache the contents of the scripts menu? (or force ScriptsMenu plugin start)

    In the scripting forum I created the thread Adding custom scripts to actions revisited - Partial workaround
    Basically, you can create actions with keyboard shortcuts to execute custom javascript/vbscript, etc. and successfully reload them after restarting Illustrator but only if the user manually navigates to File->Scripts before manually loading an actions (.aia) file
    Any script menu items added to actions will be stripped from the custom actions when Illustrator is restarted because, I believe, the script menu items are not cached and are therefore invalid when the actions are automatically reloaded.
    Obviously, I'd prefer not requiring the user to navigate to the scripts menu and replace the actions every time Illustrator is started.
    Does anyone have any ideas on a way to write code so that Illustrator caches the contents of the scripts menu? Preferably this would be before the actions are loaded so they don't get invalidated and need to be reloaded in the first place. A keyboard macro would likely execute to late to be of much help.
    If anyone knows anything about the actual mechanism of caching the scripts menu or knows of anything else relevent to this please respond.
    Thanks!
    Edit: The menu is created in the Scripts Menu plugin (ScriptsMenu.aip). Perhaps there is no "cache" of the menu and the plugin just doesn't perform the startup until you browse to the File->Scripts menu?
    AIMenuGroups.h has the global definition of the group:
    #define kScriptsMenuGroup         "ScriptsMenuGroup"

    Have you looked at stored outlines ? They are for plan stability.
    Also you may want to look little deep on where your statistics are going wrong.
    I would recommend using below hint and checking where is difference in estimated(E-Rows) and actual number(A-rows) of rows. This may point out some incorrect stats.
    e.g.
    select /*+ gather_plan_statistics */ * from dual;
    D
    X
    select * from table(dbms_xplan.display_cursor(null,null,'ALLSTATS LAST'));
    Plan hash value: 272002086
    | Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers |
    | 1 | TABLE ACCESS FULL| DUAL | 1 | 1 | 1 |00:00:00.01 | 3 |
    ------------------------------------------------------------------------------------

  • Showing the script menu

    How do i activate the script menu in itunes. So i can see my scripts onscreen within itunes. Sinc I can't see them right now, i assume it means i do not have my itunes scripts assigned to itunes. but my finder script menu shows lots of itunes scripts in it. It also shows lots of safari scripts, although i can't see those inside Safari either. This has to be easy, but applehelp offers not help.

    Scripts for iTunes must be placed in specific locations to automatically appear in the Scripts menu:
    HD/Library/iTunes/Scripts (accessible by every account)
    or
    HD/Users/Username/Library/iTunes/Scripts (account specific)
    When you've never used scripts this way, the Scripts folder inside the iTunes folder does not exist, so you have to create it.
    A good resource for iTunes scripts is http://www.dougscripts.com/itunes/
    Hope this helps.
    M

  • Adding new function & menu to apps

    Hi i am newbie to apps
    i am working with forms and reports and having access to apps ,I like to know how can register my function with specific menu and to specific responsibility.I searched this forum but didnt found a clear steps.I also like to know create and register menu in apps
    thnks
    ramya

    Ramya
    I will give you a brief explanation, but you will find more details in the document Oracle Applcations System Administrators Guide, whcih can be found on MetaLink.
    Functions are used to associate a form or procedure with a menu item. The seeded forms and self service functions all have functions pre-defined. If you create new forms or self service procedures, you will want to create a new function to associate your versions to.
    Once you have defined a function, you need to associate the function to a menu. If the function can be accessed directly from the menu, you need to have a menu prompt which the user can use.
    Then you associate your menu (with its functions) to responsibility. You can control which menu items you want the user to access by adding 'menu or function exclusions' to the responsibility. In this way, you can have one menu, but with different variations used in different responsibilities.
    There are manyu variations on this theme, but I hope this basic explanation points you int he right direction.
    Regards
    Tim

  • Script to launch app after power up on specific days

    Hello everyone,
    I've been using scripts more and more each day, and I've learned a lot just by trial an error, and of course, great help from the community. But now I have this one script that I just can't figure out how it would work, or even if it's possible.
    So the idea is to launch a specific app, after power up, on a specific day of the week. For example, say I want to have the app Mail to launch automatically after power up on sundays. How would I do that?
    Thank you so much!

    Hi anamorphis,
    I've never used launch daemons, but you could search for that. You could probably do it with that. I know how to use launch agents where you can run programs on user login. These two are similar, but there might be complications on running things on power up as compared to launch agents. Search for daemons. There is a lot of stuff like that on the internet.
    gl,
    kel

  • Office 2013 VL and app-v 5 SP2 on RDS server - package add fails with script error

    We have used the MS Office Depolyment Tool for click-to-run to download the latest Office 365 version, and flatten it into an app-v 5 package - not a problem.
    When we try to add the package to our client machine (Server 2008R2 running the app-v 5 SP2 client software), it fails with an message that a script has failed and not returned a 0 code.  We have not added any scripting to this automatically created
    package, so it seems that the app-v client does not like the "official" package.  Any hints and tips gratefully accepted, thanks
    App-v client has scripting enabled.
    The powershell command line we are using is:
    PS C:\windows\system32> Set-ExecutionPolicy Unrestricted
    PS C:\windows\system32> Add-AppvClientPackage -path file://hostname/app-v/o365-noaccess/ProPlusVolume_en-us_zh-cn_x86.appv -DynamicDeploymentConfiguration \
    \hostname\app-v\O365-NoAccess\ProPlusVolume_en-us_zh-cn_x86_DeploymentConfig.xml
    with a result of:
    Add-AppvClientPackage : Embedded Script process exited with an error code indicating failure (return code other than 0). Please ensure that Embedded
    Script process can complete successfully and exits with 0.
    Operation attempted: Configure AppV Package.
    AppV Error Code: 100000000C.
    Please consult AppV Client Event Log for more details.
    At line:1 char:1
    + Add-AppvClientPackage -path
    file://hostname/app-v/o365-noaccess/ProPlusVolum ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidResult: (:) [Add-AppvClientPackage], ClientException
        + FullyQualifiedErrorId : ConfigurePackageError,Microsoft.AppV.AppvClientPowerShell.AddAppvPackage
    and these are the error messages we see in the debug app-v client logs:
    Script Launcher successfully waited for script with command line: '"C:\ProgramData\App-V\D24C3BDD-8FAD-44D3-998C-933F8F053682\CD9725CE-4503-4932-863B-4FCDA3F9551D\Root\..\Scripts\Integrator.exe" /I /Msi /License /AppV PackageGUID=D24C3BDD-8FAD-44d3-998C-933F8F053682
    PackageRoot="C:\ProgramData\App-V\D24C3BDD-8FAD-44D3-998C-933F8F053682\CD9725CE-4503-4932-863B-4FCDA3F9551D\Root" MsiName=SPPRedist.msi,SPPRedist64.msi PidKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx,xxxxx-xxxxx-xxxxx-xxxxx-xxxxx,xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
    PRIDName=ProPlusVolume'.
    and...
    Package {d24c3bdd-8fad-44d3-998c-933f8f053682} version {cd9725ce-4503-4932-863b-4fcda3f9551d} failed configuration in folder 'C:\ProgramData\App-V\D24C3BDD-8FAD-44D3-998C-933F8F053682\CD9725CE-4503-4932-863B-4FCDA3F9551D' with error 0x79100E10-0xC.
    and...
    machine script for event AddPackage with command line: '"C:\ProgramData\App-V\D24C3BDD-8FAD-44D3-998C-933F8F053682\CD9725CE-4503-4932-863B-4FCDA3F9551D\Root\..\Scripts\Integrator.exe"'
    exited with failure error code: The extended attributes are inconsistent.. Because Rollback is set to true in the script definition, the current AppV Client operation was rolled back.
    We believe this last error message is the kicker, but can't debug any further.

    Just to validate the problem, I started again.
    I have just downloaded the latest ODT from MS, and then downloaded the latest Office 2013 packaged - volume license.  Then created the app-v package - all went perfectly, no error messages.  Uploaded the package to the app-v 5 server and published
    it.  I have made NO changes to any of the files.
    I have just built a brand new Windows Server 2008R2 Datacentre VM, patched it to the hilt, and installed the RDS role, powershell 3 and appv 5.0 SP2 client for RDS.
    I then use powershell as above:
              scripting unrestricted
              app v client scripting enabled
             app v server added
              global and user update enabled
             add-appvclient package  "url of office package.appv"
                 and received exactly the same error message.  
    It is not complaining that scripting is not allowed, it is complaining that the script is invalid.
    Help!!!!

  • Help with selecting files from script menu or drag and drop

    I found this scale images applescript online. It works great when a bunch of files is dragged on top of the script but I would like it to also work when a folder or group of files is selected in the Finder and I activate it from the scripts menu.
    I can't get my on run statement to work. I'm not really an Applescript guy so I'm really just asking if someone can help finish what I started in this on run.
    -- save in Script Editor as Application
    -- drag files to its icon in Finder
    property target_width : 120
    property save_folder : ""
    on run
    tell application "Finder"
    activate
    set folder_path to quoted form of (POSIX path of (the selection as alias))
    set theItems to every file of folder_path
    end tell
    end run
    on open some_items
    -- do some set up
    tell application "Finder"
    -- get the target width, the default answer is the property target_width
    set new_width to text returned of ¬
    (display dialog "Target width:" default answer target_width ¬
    buttons {"OK"} default button "OK")
    if new_width as integer > 0 then
    set target_width to new_width
    end if
    -- if the save_folder property has not been set,
    -- set it to the folder containing the original image
    if save_folder is "" then
    set save_folder to ¬
    (container of file (item 1 of some_items) as string)
    end if
    -- get the folder to save the scaled images in,
    -- default folder is the property save_folder
    set temp_folder to ¬
    choose folder with prompt ¬
    "Save scaled images in:" default location alias save_folder
    set save_folder to temp_folder as string
    end tell
    -- loop through the images, scale them and save them
    repeat with this_item in some_items
    try
    rescaleand_save(thisitem)
    end try
    end repeat
    tell application "Image Events" to quit
    end open
    on rescaleand_save(thisitem)
    tell application "Finder"
    set new_item to save_folder & "scaled." & (name of this_item)
    end tell
    tell application "Image Events"
    launch
    -- open the image file
    set this_image to open this_item
    set typ to this_image's file type
    copy dimensions of this_image to {current_width, current_height}
    scale this_image by factor (target_width / current_width)
    save this_image in new_item as typ
    end tell
    end rescaleandsave

    When items are dragged to your script's icon they are passed in to the on open handler, so this triggers:
    on open some_items
    and the dragged items are passed in as some_items
    In contrast, when you double-click on the script, or invoke it via the Script menu, this runs the on run handler:
    on run
      tell application "Finder"
        activate
        folder_path to quoted form of (POSIX path of (the selection as alias))
        set theItems to every file of folder_path
      end tell
    end run
    However, there's nothing in this block that actually does anything with the selection - you (dangerously) assume that the selection is a folder (you really should check first), and just set theItems to every file in that folder then you exit.
    So to do what you want you'll need to edit your run handler to filter the selection and pass files over to the code that does the hard work.
    You already have the basis for this - your rescaleandsave() handler, so it's just a matter of identifying the files in the selection and passing those over to that handler:
    on run
      tell application "Finder"
        set cur_selection to (get selection) -- get the selection
        repeat with each_item in cur_selection -- iterate through
          if class of each_item is folder then -- do we have a folder?
            set theFiles to every file of each_item -- if so, get its contents
            repeat with each_file in theFiles -- iterate through them
              my rescaleand_save(eachfile) -- and process them
            end repeat
          else if class of each_item is document file then -- do we have a file selected?
            my rescaleand_save(eachitem) -- if so, process it
          end if
        end repeat
      end tell
    end run
    So the idea here is that the run handler gets the selection and works through the (potentially-numerous) items. For each selected item it checks whether its a folder or a file, if its a folder it gets all the files within and passes them to the rescaleandsave handler.
    Note that this is not recursive - it won't catch files within folders within folders - since it only looks at the top level of selected folders, but it wouldn't be hard to rework the script to handle that if that's what you need.

Maybe you are looking for