Convert Automator Flow to AppleScript??

Hello AppleScript/Automator Gurus
Firstly, I just started Automation this week with Automator but I've ran into a wall.. x.x   I'm hoping I can resolve this by means of AppleScripting.
Below is an image of what I'm trying to do. It works great, unless there's no files matching. At this point, it denies going any further because theres nothing to 'Move'.
What I actually want to do is (in steps):
1. Get specified finder items >
2. Get folder contents >
3. Filter Finder Items by extension w/no folders selected >
4. Move Finder Items to specified folder >
5. If there is no Finder Items found to move skip >
6. Repeat from step 1 to filter other extensions into appropriate folders unless there are no more steps or files then stop.
Now I'm thinking if I could replace Step 4 (Move Finder Items) with an Applescript that would do this. Then insert Step 5. Eliminating the break in chain, so it can continue on to the next extension and do the same Steps 1-5.
Then for the last move of the last group, an end if there are no files to move and no next step.
If this has to be done all in Applescript from Step 1-6 I'm SOL (hoping not since I'm posting here).
Thank you all very much for your attention and help. I apologize if this has been discussed before but I've been researching for a couple of days now and born unto Applescript as of yesterday I see it as a logical process but I have no idea where to begin or how to write Applescript. I'm a new Mac user since Feb, Automator since about 3 days ago and complete noob to Applescript. Any help is appreciated.

Reviewing what you mentioned, seems extremely simple. Even moreso than Automator in a way
In my opinion, AppleScript is easier - it's certainly easier to string together multiple discrete tasks, plus it's easier to read that one line and understand it's purpose than it is reading each step in an Automator workflow and knowing what it's trying to do.
what if there are no files of that filetype left in the folder and there are only
That's a fair question, right now, as it stands, it would throw an error ("can't get every file of folder.."). There are multiple ways of dealing with that. One is to add a specific test to check that files exist, another is to assume the best and just catch errors.
To specifically check that some files were found the script needs to be expanded some:
tell application "Finder"
          set files2Move to (every file of folder "Split Filetypes" of desktop whose name extension is "wav")
          if count files2Move > 0 then
                    move files2Move to folder "Path:to:your:WAVs"
          end if
end tell
Here the first statement gets a list of matching files and puts them in a variable I've called files2Move.
I then check to make sure that files2Move actually contains some data (i.e. there aren't 0 files). If there are any files, I move them. If there are no files the move statement never executes.
The alternative approach is to use a 'try' statement. This tells AppleScript to fail gracefully, rather than reporting an error, so in this case I can just try to move the files and ignore any failures:
tell application "Finder"
          try
                    move (every file of folder "Split Filetypes" of desktop whose name extension is "wav") to folder "Path:to:your:WAVs"
          end try
end tell
Here I've wrapped the move command in a try/end try block. If an error occurs the script moves silently to the 'end try' statement without reporting an error to the user. Note that there are multiple things that cold constitute an error - the source or destination directories might be invalid or missing, there might be zero files that match the criteria, the destination directory might be read-only, etc. This script doesn't differentiate between any of those cases, it'll just try its best and move on.
Can I just put in a move function to move those filetypes, written in applescript, that goes on to the next step in automator if no files are found?
You can do that - Automator is built on top of the same underlying engine as AppleScript is. Indeed, there is a Run AppleScript action in Automator, so anything you can do in AppleScript you can add as a step in Automator. My problem with this though, is in passing data between the workflow and the AppleScript action. For me, I find it easier to write in AppleScript, so as soon as I find myself thinking in AppleScript I move the whole project there since integration is just so much easier.
Applicatons and Folder Actions are not Automator-exclusives. Indeed, the original Folder Actions spec was AppleScript entirely - Automator put a slightly prettier front-end on it, but it was originally all AppleScript.
Granted, building a Folder Action in Automator is easier since it takes care of saving the script in the right place and attaching it to the folder in question, but it's not hard to do in 'pure' AppleScript - you just need to add an appropriate handler so that the OS knows what to do when the folder is triggered.
Of course, as a folder action you're no longer concerned with checking a specific directory. Since the folder action is attached to a folder (or, really, any folder) you should check the data that's passed in rather than rely on a hard-coded path.
For example, to turn my script into a Folder Action that triggers on newly-added files, you wrap it like;
on adding folder items to theFolder after receiving theNewItems
          repeat with each_file in theNewItems
                    tell application "System Events"
                              if name extension of each_file is "wav" then
                                        move each_file to folder "Path:to:your:WAVs"
                              end if
                    end tell
          end repeat
end adding folder items to
Now, this is a little different. Since it's a Folder Action it inherently knows the files that have just been added, so there's no need to query the Finder to find the WAV files - you can just look at the list of files that were passed in. You can just duplicate the 'if name extension... end if' statements for each of your file types, and you don't need to worry about there being zero files to move since the 'if' statements will identify the file types.

Similar Messages

  • Convert automator object to applescript

    Hi,
    6 months ago I was working with automator and in my web searching I found a technique to convert the automator object (in the editor) to applescript. I have forgotten the trick and cannot find it...
    How is that done????
    I thought it was a drag and drop or copy and past thing, but it doesnt seem to be working.
    same OS, 10.5.8

    I'm not sure what you mean by "automator object". Are you referring to a script in the *Run AppleScript* action window? If that is the case, you can sometimes convert by copying the contents of the on run {input, parameters} handler to the *Script Editor*. I say "sometimes", because you will need to handle the input to the script differently, and Automator's scripting dictionary is a little different than normal AppleScript in some places (e.g. dialogs).
    If you are referring to events recorded in a *Watch Me Do* action, you can select the desired event(s) and copy/paste into the *Script Editor*.

  • Automator, iMovie and Applescript problem

    Hi,
    I'm trying to convert a .mov file to .mp4 using Visualhub and automator, but a step in my automator file uses an applescript step that just causes the automator flow to stop and the end and not gon one with the rest of the actions.
    More specifically:-
    1. I use my HD camera to film something.
    2. Connect the camera to my mac.
    3. Import the video using iMovie.
    4. My Automator actions ask me to confirm that iMovie has finished the import
    5. Then Ask for finder items, which is get the newly imported .mov into VisualHub
    6. Run the problematic Applescript:-
    on run {input, parameters}
    --we need to unset the default timeout length of two minutes, we'll make it 45
    with timeout of (45 * 60) seconds
    tell application "VisualHub" to set VisualHub to load script (scripts path of main bundle & "/automation.scpt" as POSIX file)
    tell VisualHub
    LoadSettings("/Volumes/MyBook/hd.cam.settings.vhub")
    --SetSaveLocation("YOURHARDDRIVE:Users:YOURNAME:Desktop:iphonemovies:temp")
    AddFiles(input)
    StartConversion()
    QuitApp()
    end tell
    end timeout
    return input
    --delay 15
    end run
    Which I've used from this site (http://professafresh.wordpress.com/2007/10/18/fun-with-automator/) and just stopped the two lines with a comment marker.
    What is supposed to happen after that is that
    7. Automator asks to confirm that VisualHub has finished.
    8. VisualHub quits
    9. Finder finds the .mov that was created when the film was imported
    10. Finder then moves the item to the trash.
    So there is something going on with the applescript that causes the process to stop after the conversion.
    Some points:-
    1. I have used the VisualHub import and convert script step but the default settings are not what I'm after as I want the video resized to 960x540.
    2. iMovie recognizes and keeps all the head info as long as the file name is the same. So if you skip over the thumbnail in iMovie the timestamp changes to reflect the time that the video was taken. If you convert the .mov to .mp4 the info is retained but with a much smaller video size.
    I've tried to give as much info as possible, sorry if it's too much.
    Regards,

    iMoive and iPhoto are not free apps. If you purchased them on your iPhone they should available to download again on your new iPhone.
    -Doug

  • How to convert the output of Applescript which is in object format to text or string format??

    Hi All,
    I want to convert the output of Applescript which is in object format to string or text format, am running Applescript with Java, I need to display the output of applescript in Eclipse Java Console, since its object format the output is not properly displayed..
    Pls suggest.. I used the below code
    repeat with i in allContents
                if class of i is button then set the end of allStaticText to contents of i
            end repeat
    Applscript ouptput
    {button 1 of window "Player Installer" of application process "Install  Player" of application "System Events", button 2 of window "Player Installer" of application process "Install  Player" of application "System Events", button 3 of window "Player Installer" of application process "Install  Player" of application "System Events", button "Finish" of UI element 1 of scroll area 1 of window "Player Installer" of application process "Install  Player" of application "System Events"}
    Java output
    <NSAppleEventDescriptor: 'obj '{ 'form':'indx', 'want':'butT', 'seld':1, 'from':'obj '{ 'form':'name', 'want':'cwin', 'seld':'utxt'(" Player Installer"), 'from':'obj '{ 'form':'name', 'want':'pcap', 'seld':'utxt'("Install  Player"), 'from':'null'() } } }>

    Here's an improved version of the previous script, where the handler now returns "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"" instead of "button \"2\" of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"":
    tell application "System Events"
        get button 2 of window 1 of process "TextEdit"
        my objectToText(result) --> "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\""
    end tell
    on objectToText(UI_element)
        set theText to ""
        tell application "System Events"
            repeat
                if exists attribute "AXParent" of UI_element then
                    set theParent to value of attribute "AXParent" of UI_element
                    set theClass to class of UI_element
                    if name of UI_element exists then
                        set theName to name of UI_element
                        set theText to theText & (theClass as text) & " \"" & theName & "\" of "
                    else
                        set k to 0
                        get UI elements of theParent whose class is theClass
                        repeat with thisItem in result
                            set k to k + 1
                            if contents of thisItem is UI_element then exit repeat
                        end repeat
                        set theIndex to k
                        set theText to theText & (theClass as text) & " " & theIndex & " of "
                    end if
                    set UI_element to theParent
                else
                    set theClass to class of UI_element
                    set theName to name of UI_element
                    set theText to theText & (theClass as text) & " \"" & theName & "\" of application \"System Events\""
                    exit repeat
                end if
            end repeat
        end tell
        return theText
    end objectToText
    Message was edited by: Pierre L.

  • Convert photoshop action to applescript?

    Hi all. I hope you might be able to help me out. I'm looking for a way to convert photoshop actions i've created to applescript. I can't seem to find any sources to do this. I did find a script to convert actions to javascript, but as i don't have a good working knowledge of JS it's not as helpful as Applescript would be.
    Thanks in advance for any help pointing me in the right direction
    -andrew

    [email protected] wrote:
    > I'm looking for a way to convert photoshop actions i've created to applescript. I can't seem to find any sources to do this. I did find a script to convert actions to javascript, but as i don't have a good working knowledge of JS it's not as helpful as Applescript would be.
    At the core of an Action is series of executeAction invocations that correspond
    to the steps of the Action. This is what the ScriptingListener output
    essentially is, as described in the Action Manager section of the PSCS3
    Scripting Guide.
    There is no Action Manager API for AS. Your only option in AS is to call JS
    code, as is described in the Scripting Guide. You can either use the code
    generated by the ScriptingListener plugin, or you can use my Action->JavaScript
    translation script (which you've already found). To the best of my knowledge,
    there are no other solutions if you program in AS.
    -X
    for photoshop scripting solutions of all sorts
    contact: [email protected]

  • How to sent up a "send to spam" automator flow

    I've never got my head around automator but think it might be able to do this:
    When I get a spam email, I send it on to my spam filter system (mailfoundry, in my case). At the moment, I click "forward", enter the email address, & click send.
    Is there a way I can set up a button on mail so that I click just the once & that happens?
    Thanks in advance
    C

    Hi Morgan,
    what you also need to do is to assign this derived flow to Business partner. So, please run BP, select your Business partner, for whom this Derived flow is applicable, also choose required Company code and you see then a tab 'SI: Derived flows'. Here you specify for what Product type/ Transaction type this Derivation rule/ procedure is applicable.
    Hope this will help you.
    Rgds,
    Renatas

  • Automator Workflow returns Applescript Error.

    I recently created an automator workflow that will allow me to play an internet radio station without opening a browser. The workflow is…
    • Get Specified URL's (with the radio station's live streaming URL)
    • Website Popup (displays a window that plays the radio station)
    Simple enough. And it worked fine.
    So I thought, let's make this more useful. Let's add a second URL to the "Get Specified URL's" action, and options "Show this action when the workflow runs." Then I can select the radio station I want to listen to from the list.
    Now, when I run the workflow, I get the list of URL's to select from. When I click to select one, I get an "Applescript Error. AppleEvent Handler Failed -10000. That's the whole message. Nothing else.
    Now, this still works. When I click "OK" the workflow continues, brings up my popup window, and plays my radio station. But it's just an annoyance to have that AppleScript Error message pop up. Even more strange, (IMO) is that fact that if I leave both radio stations selected, there is no AppleScript Error, and my workflow defaults to the first radio station.
    BTW, the workflow is only these two automator actions. I did not add any Applescript of my own. And it's definitely the first action that's generating this message. It's the "click" that generates that message.
    Any ideas?

    Actually, I was referring to it's use in this case, since you are only going to select one item from the list - it isn't set up very well for selecting individual items. The resulting list should really be limited to one item, since allowing multiple selections might get interesting, but there isn't a handy way to do that. Using "Open URL" isn't a very good option either, since it leaves the workflow running.
    The error seems to be related to the checkboxes, so you might try an end run by using the *Choose from List* action, which doesn't have the problem:
    1) *Get Specified URLs* -- don't show the action when run
    2) *Choose from List* -- make the selection here
    3) *DIsplay Webpages*

  • Execute Automator Workflow from AppleScript

    I have a need to execute an Automator workflow from an AppleScript.
    In 10.4, this would work:
    set myWorkflow to "path:to:workflow"
    tell application "Automator Launcher" to open myWorkflow
    In 10.5, it does not. Is there an alternative way to do this in 10.5?

    Hi Dan!
    Copy the (Tiger) Automator Launcher.app 1.0.4 (*) somewhere to your 10.5 system and modify your AppleScript like this:
    tell app "path:to:Automator Launcher.app(1.0.4):"
    open "path:to:automator workflow:"
    end tell
    (*) /System/Library/CoreServices/Automator Launcher.app
    Message was edited by: spazek

  • Copying and Converting Automation

    If i make some automation up for say volume contol, and then would like to use the same drawing to use on the filter of the same synth, how is it done?
    I did a search in the manual but couldnt find anything, but i know it can be done.......
    Thanks in advance...

    Hi David
    you can copy the automation by holding down option and double clicking in the background of the track automation. this selects all automation for that track. then you can use the copy and paste commands (control C and control V) to copy and paste into the other automation spot.
    if you only want to copy from a certain point in the song, hold option and click on the first automation node from where you want to copy and it will select it and all after it.
    for a detailed look at automation check out Edgar Rothermich’s personal manuals
    http://homepage.mac.com/edgarrothermich/PersonalManuals/PersonalManuals.html
    hope this helps
    Don

  • Applescript, iMovie and Automator problem

    Hi,
    Sorry for reposting from another area, but maybe this will fair better in the right section.
    I'm trying to convert a .mov file to .mp4 using Visualhub and automator, but a step in my automator file uses an applescript step that just causes the automator flow to stop and the end and not gon one with the rest of the actions.
    More specifically:-
    1. I use my HD camera to film something.
    2. Connect the camera to my mac.
    3. Import the video using iMovie.
    4. My Automator actions ask me to confirm that iMovie has finished the import
    5. Then Ask for finder items, which is get the newly imported .mov into VisualHub
    6. Run the problematic Applescript:-
    on run {input, parameters}
    --we need to unset the default timeout length of two minutes, we'll make it 45
    with timeout of (45 * 60) seconds
    tell application "VisualHub" to set VisualHub to load script (scripts path of main bundle & "/automation.scpt" as POSIX file)
    tell VisualHub
    LoadSettings("/Volumes/MyBook/hd.cam.settings.vhub")
    --SetSaveLocation("YOURHARDDRIVE:Users:YOURNAME:Desktop:iphonemovies:temp")
    AddFiles(input)
    StartConversion()
    QuitApp()
    end tell
    end timeout
    return input
    --delay 15
    end run
    Which I've used from this site (http://professafresh.wordpress.com/2007/10/18/fun-with-automator/) and just stopped the two lines with a comment marker.
    What is supposed to happen after that is that
    7. Automator asks to confirm that VisualHub has finished.
    8. VisualHub quits
    9. Finder finds the .mov that was created when the film was imported
    10. Finder then moves the item to the trash.
    So there is something going on with the applescript that causes the process to stop after the conversion.
    Some points:-
    1. I have used the VisualHub import and convert script step but the default settings are not what I'm after as I want the video resized to 960x540.
    2. iMovie recognizes and keeps all the head info as long as the file name is the same. So if you skip over the thumbnail in iMovie the timestamp changes to reflect the time that the video was taken. If you convert the .mov to .mp4 the info is retained but with a much smaller video size.
    I've tried to give as much info as possible, sorry if it's too much.
    Regards,

    You can do that all in iMovie
    Select 300 photos set the length to 3:15 - Import
    Select all in the timeline. Pick your transition. Set it to .29. Apply.
    Daniel C. Slagle - Keeper of the "Unofficial" iMovie FAQ
    http://iMovie.danslagle.com
    Quad - 2.5 Ghz G5   Mac OS X (10.4)   GeForce 7800 GT, 3G RAM, 250GB & 500GB internals

  • Applescripting automator to use Font Book

    Automator has Font books settings to create a work flow (have made a simple automator flow to disable). The problem is you need to select the collection to be disabled.
    Is there a script command I can use to select a collection, and pass it through to the Automator to automatically disable?
    *creating an app in XCode. If it could be totally scripted that would be better
    Thanks for any help

    Me too I tried to do the same thing but with a specific font and Automator randomly failed on execution. This is very very frustrating. The error I get randomly is this one: "An error (Font Book got an error: NSReceiverEvaluationScriptError: 4 (1)) occured in Deactivate Fonts". Someone can explain to me why?
    If AppleScript work without problems can you give the code to disable for example "Skia" font?
    Thank you in advance for the help!
    Power Mac G5 Dual 1.8 GHz   Mac OS X (10.4.6)  

  • How can I use Automator or AppleScript to get text from a web page and paste it in execl?

    I don't know how to make scripts or complexed automator workflows... that's why I'm asking.
    I'm trying to make a simple app or script to ask me what text to extract from a web page, like name, address and phone number of a web page and paste each one of these data in the righ cell of excel.
    I was thinking to promt a request from automator or an applescript to ask me which text to extract from the page or to look throught the HTML of the page to search for specific html tags, from which extracting text and then importing it, or paste it to the specified execl cell. Name in the name cell, address in the address cell and so on.
    Can somebody help me to make this script?
    If you know an alternative, like a software that already do this or another language to use, please tell.

    Try holding down the alt key as you mark the text to be copied. You can then copy columns to table text.

  • Converting old Quark applescript to InDesign - problems

    Hello
    I'm converting an old Quark applescript to InDesign CS3 finally. I'm having a problem with placing, scaling and adjusting images.
    Here's how it works ... a user fills out a Microsoft Word form, which a designer unlocks and pastes into the layout, and then runs the script. The image frames are all labeled, and that's how I'd like to call them.
    Here's a snippet of the Quark portion that I'm having a problem with ...
    set Todayicon to item (offset from list Dayicons of Todayval) of DayIconEPS
    set Todayiconpath to (OPIpath and Todayicon as string)
    set Todayicon to item 1 of Todayiconpath
    set scale of Todayicon to {"65","65"}
    set offset of Todayicon to {"-1p2","0p5"}
    And here's what I'm thinking I need to do in InDesign CS3 ...
    set Todayicon to item (offset from list Dayicons of Todayval) of DayIconEPS
    set Todayiconpath to (OPIpath and Todayicon as string)
    set Todayicon to item 1 of Todayiconpath
    set TodayiconTransformationMatrix to make transformation matrix with properties {horizontal scale factor:0.65, vertical scale factor:0.65, geometric bounds:[-14,-5]
    transform Todayicon in inner coordinates with matrix TodayiconTransformationMatrix
    Unfortunately, the script errors out when it tries to make the transformation matrix, even though I'm following the examples in the Working with Tranformations in Applescript pdf.
    Any ideas? I guess I can put dummy images in the layout and call a "Place" to override the dummy images, which should keep the scale, but it doesn't help me when I need to offset the images sometimes.

    Philip Regan wrote: "The new scripting model with all of its touted advantaged is really poorly executed."
    While I didn't design the scripting model for transformations, and disagree with some of the decisions made in the design, I understand that InDesign's transformations architecture had to be rewritten for CS3. There were too many cases in CS2 where objects could not be returned to their original coordinates after transformation. The scripting implementation pretty much had to go along with the change in the underlying architecture.
    If you'd rather things work the way they worked in CS2, why not use the set of transform "wrappers" that I wrote and included in the transform tutorial? With those functions, you don't really need to worry about the new model.
    Thanks,
    Ole

  • Execute Applescript fails when run as part of Automator action

    I have an automator action whose first step is an Execute Applescript to drive a spaces switch:
    _Execute Applescript_
    <pre>on run
    tell application "System Events"
    keystroke "2" using {control down}
    end tell
    return true
    end run</pre>
    When I click the "Run" button in the upper left of the Execute Applescript window in Automator, the script runs and the screen switches spaces.
    But, if I run the whole Automator Action, it always fails on this first action. I think it's because I'm not handling input and parameters correctly, but I can't figure it out. If I add them ( On Run {input, parameters} ) then the Applescript itself does not work and also still does not work when I run the whole Automator action.
    Can someone help me get the syntax right on this?
    Thanks!

    All I can get out of the Automator interface is "Action Failed". The second action is a Pause [15] seconds, but I'm certain it never gets there. When the Automator action fails, the applescript does not produce any result. Spaces does not switch. But again, if I click the "run" button in Automator's Execute Applescript window, the applescript will produce results and switch to spaces 2.
    I originally got instructions here: http://discussions.apple.com/thread.jspa?threadID=1206636&tstart=134
    When I couldn't get it to work, I posted a thread here: http://discussions.apple.com/thread.jspa?threadID=1378261&tstart=30
    Which prompted me to add the OnRun wrapper, still have problems, and finally post on this forum instead of that one because is seems to be a very automator-specific problem.
    Thanks for any help,

  • How on EARTH to parameters work in AppleScript Automator Actions for SL?

    Prior to Snow Leopard, creating a new AppleScript Automator Action would create a template something like...
    on run{input, parameters}
    but now, on Snow Leopard, I get:
    on runWithInputfromAction_error(input, anAction, errorRef)
    where to I get the 'parameters' collection from? If I just reference 'parameters', without it being declared in some way, I get errors....
    I assume there is some new mechanism in SL, what is it??
    Thanks

    Sorry, I misunderstood what you said the first time around. I thought that you wanted to use the +Run AppleScript+ action within Automator but now I see that you are trying to create a new Automator action using applescript. Now that I try it in Xcode I to get the same method/handler signature. Tried to look at the [Mac Dev Center|http://developer.apple.com/mac/library/documentation/AppleApplications/C onceptual/AutomatorTutorialAppleScript/Introduction/Introduction.html] but it hasn't been updated lately. Also tried looking at the [Automator Programming Guide|http://developer.apple.com/mac/library/DOCUMENTATION/AppleApplications/Co nceptual/AutomatorConcepts/Articles/ImplementScriptAction.html#//apple_ref/doc/u id/TP40001512] and the documentation for [AMBundleAction|http://developer.apple.com/mac/library/DOCUMENTATION/AppleAppli cations/Reference/AutomatorFramework/Classes/AMBundleAction_Class/Reference/Refe rence.html] but can't figure anything out. Sorry I don't have much experience in Xcode, so can't help you much with that.

Maybe you are looking for

  • Hyperlink for an Object need to be open in a different window

    Hi Guyz,   I have a Crystal Report which has few sub reports. In one of the Sub Report I have created a Hyperlink for an object using the formula Editor. This report is viewed from a different Portal with the help of ASP Pages. For some reason when I

  • PageFlow Context lost when Popup window opens

    I have a page flow that has a particular object with values set when the page first loads. I am calling a control using javascript onClick on a netui:anchor from one of the jsp's in the page flow. When the control calls my method in the page flow the

  • Reporting with java

    hi all, in my project, i am preparing reports which will be shown in pdf or html or excel format... reports will be two types. first, user fill in the blanks in report and print the page. in the second type, data is selected from db and shown in pdf

  • Re send a succesfukl idoc.

    Hi Experts,            I have send an IDOC and it shows success in we03. Status 03. I want to resend it. The same Idoc, with respect to it's IDOC No.  Can it be done???..If positive, pls tell me the process. !! Arnab

  • Do I add System Notification to my contacts, or is...

    I constantly get contacted by "System Notification" that my skype system needs something.  Do I add that as a contact?  Or is it a scam or potential virus?  If the latter, how do I stop it?  Using "block" has no effect...they just come back repeatedl