Help with applescript...newbie...no idea what I'm doing...

Apple Script: I got this applescript off of a forum for RapidCart for Rapidweaver.  It allows the user to upload multiple thumbnails to each e-commerce page with the code...I don't know how to make this work for my files tho...can anyone help...this is what the person said to put into applescript and then run it...please help...
display dialog "Item número" default answer "" buttons {"OK"} default button 1
set numitem to text returned of the result
display dialog "Número de fotos" default answer "2" buttons {"OK"} default button 1
set contador to text returned of the result
tell application "TextEdit"
    activate
    make new document
    repeat with counter from 1 to contador
        if counter = 1 then
            make new word at end of text of document 1 with data "<a href=%resource(Labe/L" & numitem & ".jpg)% rel=\"remooz\" title=\"Ref. L" & numitem & " foto " & counter & "\"><img class=\"imageStyle\" alt=\"\" src=%resource(Labe/L" & numitem & ".jpg)% width=\"40\" height=\"40\"></a>" & return
        else
            make new word at end of text of document 1 with data "<a href=%resource(Labe/L" & numitem & "_0" & counter & ".jpg)% rel=\"remooz\" title=\"Ref. L" & numitem & " foto " & counter & "\"><img class=\"imageStyle\" alt=\"\" src=%resource(Labe/L" & numitem & "_0" & counter & ".jpg)% width=\"40\" height=\"40\"></a>" & return
        end if
        set counter to counter + 1
    end repeat
end tell

First of all, I know nothing about RapidCart, RapidWeaver
I've cut and pasted the script into the Applescript editor, compiled it and ran it
the first dialog prompts for "Item number" - so I typed "5"
the second dialog prompts for "Number of Photos" - so I typed "2"
Here's the output
<a href=%resource(Labe/L5.jpg)% rel="remooz" title="Ref. L5 foto 1"><img class="imageStyle" alt="" src=%resource(Labe/L5.jpg)% width="40" height="40"></a>
<a href=%resource(Labe/L5_02.jpg)% rel="remooz" title="Ref. L5 foto 2"><img class="imageStyle" alt="" src=%resource(Labe/L5_02.jpg)% width="40" height="40"></a>
the generated HTML is meaningful to RapidCart.
Now, the author should have explained that this script is specific to his needs and MUST be customized for your use.
I don't know how familiar you are with HTML but the "resource" tag refers to a file - a jpg file in this case.

Similar Messages

  • Someone help! I have no idea what I am doing!

    I have a 80gb iPod that we just bought from a friend. Somehow I managed to delete all the songs he had on there which was like 2,000. I'm not really worried about that. Problem is..how do I get music on my iPod from my computer? I've also tried adding music to the Library in iTunes and it has stored to the recently added list. SO in other words I just dont know what the heck to do. Now I have a Pod with nothing on it. Any advice? Thanks!

    Awesome, we've made progress!
    Okay, so the problem seems to be in that iTunes can't find your songs (like you said).
    So let's try this:
    Open up the iTunes preferences, Edit>Preferences for a PC. Click the advanced tab. Now make sure the Keep iTunes Music Folder Organized box is checked, as well as Copy files to iTunes music folder when adding to library checkbox.
    Click OK.
    If these checkboxes weren't already checked, then iTunes will take some time to copy your library.
    If you already had the checkboxes checked, and nothing happens when you click OK, click Advanced, then Consolidate Library. This will copy your library again.
    If no error messages pop up during the copy, you're set. Right click the iPod (Bigdogs iPod, as yours has been named), and left click Sync.
    If error messages pop up during the copying library process, complaining about not being able to find files, it means you've actually somehow moved or deleted the songs that you added to iTunes. Delete the references to the songs in question from iTunes, re-add them again and then sync the ipod over again.
    Good luck and keep us up to date on your progress!
    Skip.

  • Need Help with FMS 3.5 - No Idea What I'm Doing!

    Hi guys,
    I am dying for some guidance here.  I've been tasked with setting up a media server so that we can stream video.  Problem is, I have no idea what I'm doing here and am confused by the documentation.  Can somebody please walk me through how I would set up this server so that I can stream a video?  The only thing I've been able to do so far is locate the "sample video player" and type in the address http://localhost/vod/test.flv in the STREAM URL: box.  This works, but the video/sound is very choppy.  Also, how does this relate to the Administration Console?
    Thank you so much for your expertise!  I truly appreciate it.

    Start with http://www.apple.com/macosx/upgrade/,
    http://www.apple.com/support/tiger/install/, and
    http://www.apple.com/support/mac101/cheatsheet/
    Thank you! That's definitely helpful to start with, but I'm still nervous... I realize that this is a hefty upgrade that I'm attempting. What is going to be affected? I'm not terribly concerned about documents, but will I have to re-install programs and such?
    I appreciate your help, thank you.
    -sweetpea
    PowerPC G4 Mac OS X (10.1.x)

  • Help, i am trying to print my JPEG file that i created in photoshop at a photo lab but it is coming out like an X-ray. I have printed these files before so i have no idea what i am doing wrong.

    Help, i am trying to print my JPEG file that i created in photoshop at a photo lab but it is coming out like an X-ray. I have printed these files before so i have no idea what i am doing wrong.
    Could it be something i have done in my settings?
    or when i am saving the file to JPEG?

    Basically you're approaching this the wrong way around. What you need is the extreme sections to be quieter, not louder. The problem with moving the lower end of the audio is that you'll move the noise floor too, and get what's generally referred to as a 'pumping' effect. So what you do is to use a compressor to tame the peaks, and leave the lower level sound alone. When you've done that, you amplify (or normalize to a level you can determine) the whole signal. So the noise floor will be higher, but constant and not pumping. 'Match Volume' is a completely different tool for setting the overall levels of different tracks so that they sound approximately the same - it doesn't even begin to do what you want.
    If it's music you are treating, then I'd almost certainly use the multiband compressor, because you get less artefacts with this. You need to experiment with the threshold levels, and almost certainly not use a massive compression ratio - 3:1 or 4:1 should be sufficient (although it's hard to tell without actually hearing the audio). You can tell what it's doing at any given point because the downward meter indicates how hard it's working. In theory you can apply make-up gain with it as well, but personally I leave that until everything's treated and use the 'Normalize' tool to set an absolute max level.

  • Adobe creative cloud product online help not working. Any idea what is the reason ??

    Adobe creative cloud product online help not working. Any idea what is the reason ??
    I have to manually copy pdf file to open help for all suite....

    Please try another browser, if still it is not working, check the internet connectivity http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    In case the issue is still not resolved, do contact Adobe Support.
    Regards
    Rajshree

  • After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?

    After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occours only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    Yours Bengt W

  • I've tried to d/l itunes 3 times and every time I get this message: .....Downloads\iTunesSetup.exe.part could not be saved, because the source file could not be read.  I have no idea what I'm doing. Does anyone have any ideas to help? Cheers.

    I've tried to d/l itunes 3 times and every time I get this message: .....Downloads\iTunesSetup.exe.part could not be saved, because the source file could not be read.  I have no idea what I'm doing. Does anyone have any ideas to help? Cheers.

    I've tried to d/l itunes 3 times and every time I get this message: .....Downloads\iTunesSetup.exe.part could not be saved, because the source file could not be read.  I have no idea what I'm doing. Does anyone have any ideas to help? Cheers.

  • TS1424 I keep getting a message that my ID has been disabled when trying to download an app. I have changed password I with apple. Any ideas what is wrong?

    I keep getting a message that my ID has been disabled when trying to download an app. I have changed password with apple. Any ideas what is wrong?

    If you've changed your password and it still shows disabled then try logging out of your account on the iPad by tapping on your id in Settings > iTunes & App Stores and then log back in and see if that 'refreshes' the account on it
    If that doesn't fix it then you might need to contact iTunes Support :  http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • HT5706 Help!!  First of all I am a senior and have no idea what I am doing.  Turned on the Apple TV and it said downloading the latest update.  It show the apple symbol and below a empty download line.  Nothing seems to be happening.  Is it downloading?

    Help!!  First of all I am a senior and have no idea what I am doing.  Turned on the Apple tv and it said downloading the lastest -cannot remember the rest.
    There was a Apple symbol and a dowmload space under it.  Nothing is happening.  It has been about 25 minutes.  What do I do??

    It probably did not turn itself off. It most likely went into "sleep".
    Did you try to restart the Apple TV? That is what solved the problem for me.
    Go to the main AppleTV menu - you might have to press the Menu button a couple of times to get there - select Settings, then Select General, scroll down to Restart and select that.
    As long as you don't have a "Do not unplug" message on your screen, unplugging the power cable, waiting a minute, then plugging it back in should accomplish the same thing. I always prefer using the menu method over unplugging.
    If that doesn't work, I fear you might have to contact Apple. They will likely tell you to restore your AppleTV to factory settings. That will be a pain in the neck since they will need to walk you through it. They might do that for you at an Apple store. I'm a senior citizen too, and it's easy for me to look helpless - even though I've worked in computers and networking for a very long time.
    Sorry I can't offer any better advice.

  • Please help with ViewStack(Newbie here)

    Hello, this is probably a very simple question fo most of
    you, but I just started learning Flex and have been trying
    different things. So any help would be greatly appreciated.
    What I'm doing now is creating a few simple visual components
    with back and next buttons and I want to use viewstack,
    particularly selectedindex, which is what someone recommended, to
    cycle though them in the oder I like.
    What are the recommended steps to follow to do this?

    You could try something like this:
    <mx:ViewStack id="stack">
    <mx:Canvas label="First Child">
    .....<mx:Button label="Next" click="stack.selectedIndex=1"
    />
    </mx:Canvas>
    <mx:Canvas label="Second">
    .....<mx:Button label="Back"
    click="stack.selectedIndex=0"/>
    .....<mx:Button label="Next"
    click="stack.selectedIndex=2"/>
    </mx:Canvas>
    </mx:ViewStack>
    That's not a very programmatic way to it, but it gets the job
    done. What I would do is put the Next and Back buttons outside of
    the ViewStack and then you do it a bit more programmatically:
    <mx:Button label="Next">
    <mx:click><![CDATA[
    if( stack.selectedIndex+1 < stack.numChildren )
    stack.selectedIndex = stack.selectedIndex +1;
    ]]></mx:click>
    </mx:Button>

  • Best Buy shouldn't be allowed steelbooks, as you guys haven't the foggiest idea what you are doing.

    I swear everytime I try and go to get a steelbook from Best Buy it makes me hate Best Buy ever so much and never ever ever want to shop there because of how bad you handle this and have no idea what you are doing.
    Wanted to preorder Ghost Rider and get the free steelbook but guess what they never even got them in and I checked everyday for a week after being told they were in transit on a Monday and by Wednesday was told they had been deleted by the system.  Well one good thing came out of that now I don't even have to bother buying the movie at your store.
    Wanted to get the Warner Brothers line of steelbooks that you just came out but guess what just like Ghost Riders none have showed up and everytime I ask I get well 12 our on order for that title and that title and that title.
    OH BUT THEY DID SET UP THE DISPLAY THAT SAYS COLLECTIBLE STEELBOOK AND JUST GRABBED AMRAY VERSIONS OFF THE SHELF BECAUSE THEY HAVE NO FRAKING CLUE WHAT THEY ARE DOING, THIS DISPLAY MAKES YOUR STORE LOOK LIKE A BUNCH OF COMPLETE MORONS AND CLUELESS AND THEY WONDER WHY BEST BUY IS CLOSING STORES ITS BECAUSE THEY ARE RAN BY IDIOTS WHO COULD CARE LESS ABOUT THEIR CUSTOMERS.

    Aren't those Steelbooks officially out till like June 6th or something? And I worked in retail before. This may sound dumb, but sometimes they still want you to set up displays even before the items are received. You can't be mad cause they follow direction. They might of been told to fill in the space with items to look full. Honestly you're being upset for no good reason. Yeah, it sucks that you aren't seeing the items you want in stores. These are promo items so not every store will get it. Unless it's advertised in the ad, then you should be upset. If no store has any, order them online. From what I've seen, these extras are usually offered online too.sirdizzy wrote:
    Really Best Buy can't take any culibility or credit for what goes on in their stores because they outsource it to another company rather they just make themself look like babooms by having something clearly labeled wrong and misleading on their floor.
    Why put out a display that is clearly wrong and misleading, why when its pointed out to you by a customer does that same display remain on the floor (I took that picture yesterday not today and I informed an employee yesterday not today but it was still there today).

  • I am trying to save a photoshop CS6 psd file to jpg and get an option jpg, jpg2000 or jpg stereo, I choose jpg and then Mac 256 colours, normal or interlaced.  I just want regular jpg with a high resolution.  What am I doing wrong, never had this problem

    I am trying to save a photoshop CS6 psd file to jpg and get an option jpg, jpg2000 or jpg stereo, I choose jpg and then Mac 256 colours, normal or interlaced.  I just want regular jpg with a high resolution.  What am I doing wrong?  , never had this problem before.  Help!!! 

    Your description of the issue is not clear:
    What format, bit depth and color was your original file "from the net"?  It sounds like it was a Color Indexed GIF, which would cause what you are describing.
    In the Macintosh Finder, select said "net image" and do a Get Info on it (Command+i). When the Info box appears in the Finder, take a screen shot and upload it here by using the little camera icon in the Reply Editor in the forum's web interface.
    If the image is a 256-color GIF, remember the rule:  GIGO = garbage in, garbage out.

  • HT201364 I'm trying to download Mavericks to my i-Mac for the fourth time and it just says 'Paused' and won't budge -  Any idea what I'm doing wrong?

    I'm trying to download Mavericks to my i-Mac for the fourth time and it just says 'Paused' and won't budge -  Any idea what I'm doing wrong?

    Hello AdeShaw,
    You may need to restart the computer, if you haven't done so already. Should that fail to resolve the issue, we've an article that can help resume the download.
    Mac App Store: How to resume interrupted downloads
    http://support.apple.com/kb/HT4485
    Cheers,
    Allen

  • Sorry, Flagfox has encountered a problem. Please copy the report below and post it on our forums with a detailed explanation of what you were doing at the time so we can attempt to fix your issue. (English please) Flagfox version null (missing IPDB!)

    Sorry, Flagfox has encountered a problem. Please copy the report below and post it on our forums with a detailed explanation of what you were doing at the time so we can attempt to fix your issue. (English please)
    Flagfox version null (missing IPDB!)
    ERROR MESSAGE: Fatal Flagfox startup error!
    EXCEPTION THROWN: TypeError: ExtensionManager.getItemForID(id) is null
    STACK TRACE: startup()@file:///C:/Documents%20and%20Settings/Vanessa%20Ecret/Programdata/Mozilla/Firefox/Profiles/9eyewkfc.default/extensions/%7B1018e4d6-728f-4b20-ad56-37578a4de76b%7D/chrome/flagfox/modules/flagfox.jsm:40
    ([object ChromeWindow])@file:///C:/Documents%20and%20Settings/Vanessa%20Ecret/Programdata/Mozilla/Firefox/Profiles/9eyewkfc.default/extensions/%7B1018e4d6-728f-4b20-ad56-37578a4de76b%7D/chrome/flagfox/modules/flagfox.jsm:160
    Flagfox_loadForThisWindow([object Event])@chrome://flagfox/content/overlay.xul:16
    BROWSER: Mozilla Firefox 3.6.6/20100625231939 (Gecko 1.9.2.6/20100625231939) using locale en-US on WINNT x86-msvc
    This error and a Flagfox preferences dump has been sent to Tools -> Error Console. Please report this and any related errors so we can investigate your problem. Conversely, if you don't report this then it probably won't get fixed.
    == i was update

    Sorry, the Flagfox extension has encountered a problem. The following error output and a Flagfox preferences dump has been sent to Tools -> Error Console.
    FLAGFOX VERSION: 4.1.x (missing IPDB!)
    ERROR MESSAGE: Fatal Flagfox startup error!
    EXCEPTION THROWN: TypeError: addon is null
    STACK TRACE:
    (null)@resource://flagfox/flagfox.jsm:70
    safeCall((function (addon) {try {FlagfoxVersion = addon.version;var ip4db = addon.getResourceURI(IPv4DBfilename).QueryInterface(Components.interfaces.nsIFileURL).file;var ip6db = addon.getResourceURI(IPv6DBfilename).QueryInterface(Components.interfaces.nsIFileURL).file;ipdb.init(ip4db, ip6db);checkIPDBage();ready = true;} catch (e) {handleStartupError(e);}}),null)@resource://gre/modules/AddonManager.jsm:48
    ([object Object])@resource://gre/modules/AddonManager.jsm:897
    AOC_callNext()@resource://gre/modules/AddonManager.jsm:118
    (null)@resource://gre/modules/AddonManager.jsm:892
    PL_getAddon("{1018e4d6-728f-4b20-ad56-37578a4de76b}",(function (aAddon) {if (aAddon) {safeCall(aCallback, aAddon);} else {aCaller.callNext();}}))@resource:///modules/PluginProvider.jsm:79
    callProvider([object Object],"getAddonByID",null,"{1018e4d6-728f-4b20-ad56-37578a4de76b}",(function (aAddon) {if (aAddon) {safeCall(aCallback, aAddon);} else {aCaller.callNext();}}))@resource://gre/modules/AddonManager.jsm:76
    ([object Object],[object Object])@resource://gre/modules/AddonManager.jsm:888
    AOC_callNext()@resource://gre/modules/AddonManager.jsm:124
    (null)@resource://gre/modules/AddonManager.jsm:892
    (null)@resource:///modules/XPIProvider.jsm:3047
    ([object Array])@resource:///modules/XPIProvider.jsm:4864
    (0)@resource:///modules/XPIProvider.jsm:3867
    BROWSER: Mozilla Firefox 7.0.1 (Gecko 7.0.1 / 20110928134238)
    OS: Windows NT 6.1 (WINNT x86-msvc windows)
    LOCALE: en-us content / en-us UI / en-us OS
    Select and copy the error report above. In order to fix this problem for you and others, please read and follow the troubleshooting and bug reporting instructions on the Flagfox support forums. Please post an abundance of information with any error reports, namely what you were doing at the time that may have triggered this. (English please)

  • I am so confused.  I just downloaded Itunes.  I set up an Apple ID with a password.  Now I want to purchase a song.  I can't do it.  I keep getting the message: This Apple ID has not yet been used with the Itunes Store.  What am I doing wrong?

    I am so confused.  I just downloaded Itunes.  I set up an Apple ID with a password.  Now I want to buy a song.  I can't do it.  I keep getting the message: "This Apple ID has not yet been used with the Itunes Store.  What am I doing wrong?

    You haven't opened an account with that Apple ID in iTunes. Open iTunes and log in. A dialog will appear in which you need to enter your Apple ID and/or password. Below it you should see a link for creating a new account. Click on that link to get started.

  • Hi, every time I attempt to purchase OXS Mountain Lion I get a message that says unable to complete your purchase because "The product distribution file could not be verified. It may be damaged or was not signed." Any idea what I am doing wrong, cheers.

    Hi, every time I attempt to purchase OXS Mountain Lion I get a message that says unable to complete your purchase because "The product distribution file could not be verified. It may be damaged or was not signed." Any idea what I am doing wrong, cheers.

    Welcome to Apple Support Communities
    Press Shift key on boot and purchase OS X 10.8

Maybe you are looking for

  • IOT and lots of random inserts

    hi guys, if we have an IOT and we do a lot of random inserts, does it mean that because the IOT will constantly be rebuilt, we can suffer from bad performance? therefore, is an IOT not advisable when we do a lot of random inserts? thanks Edited by: O

  • HTML and JS in Adobe Muse is slow to load?

    Hi, I've embedded an Edge Animation into Muse by inserting the HTML and uploading the Javascript using a MuCow widget provided by Adobe. 'LoadJSAtBodyEnd.mucow' The animation takes a very long time to load? 11 seconds in Safari, 20 seconds in Firefox

  • FCP with two monitors?

    Ok I am upgrading to a MACPRO desktop and was getting one sd monitor and a second HD monitor...Now I was thinking why do I need that second screen? Would it be smart to get the one HD screen and forget about the second? What do people usually use the

  • Flash Player update w/ expressInstall

    Hello everyone, We've just launched a website which needs FP 10.1 and ran into this situation: If you have FP 10,0,45,2 installed, the expressInstall tries kicking in (I use SWFObject for implementation) but coughs up a security error when loading ht

  • Drop zone flickering

    I have some B&W pix going through a drop zone and have been getting a sort of 'ant' effect -- a cascading and in some cases a flicker on lines. I started dealing with it in FCP but have fixed everything there, and narrowed it down to the drop zone. W