Your best friend for file transfer.

Fetch application logoFetch

AS - referring to window by ID number (4 posts)

  • Started 6 years ago by syounker
  • Latest reply 6 years ago from Scott McGuire
  • syounker Member

    I have need to refer to a window by ID number. I understand how to get the id number, but when I try to put a file I get an Access Denied error. What's the best way to put a file into a specific window ID

    tell transfer window id myID
    put into transfer window "Window Name" item alias "Macintosh HD:Users:e020049:Desktop:testimage.jpg"
    --this generates an Access Denied error
    end tell

    Posted 6 years ago #

  • Scott McGuire Administrator

    Hi,

    The problem is that you are trying to refer to the transfer window by name after you've already specified the transfer window to use with the "tell transfer window id" statement.

    You want to one of the following. Either say just:

    put into transfer window id myId item alias "Macintosh HD:Users:e020049:Desktop:testimage.jpg"

    or say:

    tell transfer window id myId
       put into item alias "Macintosh HD:Users:e020049:Desktop:testimage.jpg"
    end tell

    Please let us know if you have other questions.

    Thanks,

    Scott McGuire
    Fetch Softworks

    [This message has been edited by ScottMcGuire (edited 03-28-2008).]

    [This message has been edited by ScottMcGuire (edited 03-28-2008).]

    Posted 6 years ago #

  • syounker Member

    Worked like a charm. Thought ;d tried that. Oh well, thanks for the quick and accurate response.

    Posted 6 years ago #

  • Scott McGuire Administrator

    Hi,

    You're welcome, and thanks for letting us know that worked for you.

    Best,

    Scott McGuire
    Fetch Softworks

    Posted 6 years ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.