Confused on moving from applescript to action

I hope I can describe this properly.
I'm building an Automator workflow that starts with a series of AppleScripts, performing various tasks on folders and files contained therein, and then finishes with several Automator Actions.
In an earlier version I used "Get Specified Finder Items" to select a folder, then a few other Actions followed. That worked fine. Now, I'd like to have that selected folder be what is known to AppleScript as the "temporary items" folder.
In AppleScript I can do this:
<pre style=" font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #ADD8E6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
set myTempFolder to "TheFilesAreHere"
set theTempFolder to folder myTempFolder of (path to temporary items)
</pre>
...but then I can't figure out how to get that along as my "specified finder item" to continue my Workflow.
I hope this makes sense... I suppose I can clarify if needed.
Thanks.

berghjon wrote:
heh... here is an interesting discovery... when you "return" a variable from AppleScript it only passes to THE NEXT ACTION... an early version of my workflow had a 3-second pause (this was necessary at the time... not anymore).
Now that the pause is removed, the "return" is behaving as expected.
Thanks for the help.
P.S., I don't fully understand POSIX path business, but there is apparently no functional difference between:
POSIX path of (theTempFolder as alias)
POSIX path of (theTempFolder as text)
POSIX path of (theTempFolder as alias) as text
should there be?
yes, "as text" at the end is unnecessary. this is passed as text anyway. I frankly don't understand why
POSIX path of (theTempFolder as text)
works. it seems to be able to convert the text version of the path to theTempFolder which is : delimited to the unix path version which is / delimited. You can ask in the apple script forum for an explanation. i don't really understand it.

Similar Messages

  • I moved from an old macbook to a new one.  I copied all my files onto a hard drive.  On trying to setup my mail, i went into documents, microsoft user identities, office 2011 and it shows the database but wont let me select it.  Urgent help pls

    I moved from an old macbook to a new one.  I have installed Office for Mac 2011. I copied all my files from my old notebook onto a hard drive.  On trying to setup my mail, i went into my hard drive and accessed microsoft user identities, office 2011 and it shows the database but wont let me select it.  Its almost as if the file is there but not accessable.  I desperately need to access my old mail.  How do I do this?  I am fairly confident that I copied all files off my old notebook.  Is there a way for me to search for the Database file?  Maybe I copied it to a different location?  Urgent help please.

    Hello mafrerichs and welcome to Apple Support Communities,
    Simplest way is to use Target Disk mode:
    How to use and troubleshoot FireWire target disk mode - Apple Support
    and hook to another Mac and use CCC or SuperDuper and clone your HD to another drive.
    You could also pull the drive out of your MBP and use an external USB case or SATA - USB dongle to hook it to another Mac.
    "MacBook Pro (15-inch Late 2011),... have a 15" 2012 Macbook pro with 2gb of ram, i7 processor"
    That's a little confusing?

  • Folder action to package and create pdf Applescript folder action

    Hi
    Does anyone have an Applescript Folder Action to package Indesign CS5.5 files and make pdfs.
    Thanks, in advance.

    Hi Babs
    I ended up paying someone to create the script. They did a fantastic job creating a droplet that has options to package, create PDFs to presets, print to presets, create an IDML file, retrosave this to CS4 and create a thumbnail. Sounds like a lot but that is what I ended up needing for one client and I can use it on anything.
    Thanks
    Mac
    Sent from my iPhone

  • Moving from Gmail to MobileMe/.Mac, in relation to an iTunes Store Account

    I'm moving from Gmail to MobileMe since I got my iPhone, and as with every email change, a whole mess of online accounts follow. The process is simple enough for third parties like social networks, but Apple wants my life to super convenient and easy, and in the process made it even more confusing. My MobileMe account apparently already has an attached iTunes Store/Apple account, so I can't change my old account to log in with the @me instead of my @gmail. While I could simply stop using the Gmail, I receive iTunes allowances which would need to be re-set up and would lose store credit. What would be best is to simply merge the two accounts. Is this in any way possible?

    HI,
    can you still update your UAE purchased apps after this change?
    Thx

  • Moving from one iPhone to another

    Hi
    Can you please kindly clear this up for me. I'm reading and clicking around and just getting more confused.
    Recently I moved from an iPhone 3G -> 3GS. I did a back up and used this to restore on to the new phone. Brilliant. Everything was there except my apps and music.
    I put this down to not syncing them on that laptop I used.
    Now I'm expecting an iPhone 4 soon and want to make sure this doesn't happen again. I have gone in to iTunes (10.1 on a Mac Book Air running 10.6.5) but if I click sync on the apps it warns me it will wipe my phone and install what shows in the library - one app I don't even have on the phone. Eek!
    What should I do to ensure my apps get put on to my new phone?
    Thank you
    Shell

    Brilliant. The 'Sync Purchases' step was what I was missing, thank you
    The apps/music were on a different computer I changed from about the same time so I never got around to doing the whole sync thing on there. I did restore from this old computer but it was until I was away from it I realised what had happened with the apps and music! I understood this is what I should have done though to get them back as I know they were all synced on there.
    It all makes sense now so it won't happen again, cheers!
    To be clear for those finding this thread looking for help, if you are planning to move from one iPhone to another:
    1- Before: Do a back up (right click the phone on the left in iTunes and choose backup)
    2- Sync apps etc (right click on the phone on the left in iTunes and choose sync purchases)
    3- On the new phone when iTunes asks, use the backup
    4- After, sync it to get your apps back!
    Shell

  • DATAGRID FOCUS ISSUE: Focus got lost, while moving from one cell to another cell using tab key.

    Problem: Focus got lost, while moving from one cell to another cell using tab key.
    Example: In an AdvanceDataGrid, there are three columns having custom ItemRenderer with Spark TextInput control (editable=true & focusEnabled=true).
    When I try to move the focus in with in 2nd, 3rd & 4th column using tab key, focus got lost. Most of the time it’s working, but some time it doesn’t work. There’s no clue as to how may rows/columns the focus has jumped to; or whether the focus has gone out of the data grid altogether.
    Observations: I am not sure whether this problem is because of custom component implementation or it is because of some issue related to Flex Component.
    It only occurs when we perform some actions like some server call, some complex logic execution etc. at the focus out event of itemrenderer.
    There is one property of datagrid i.e. editedItemPosition which contains row & column index of datagrid. On the focus out event, it gets null when focus got lost. We tried to set it, but it didn’t work.
    Steps Performed:-
    1. Currently focus is in 2nd column i.e. Apply to #.
    2. Once I press tab key from 2nd column, it goes to 3rd column which is correct.
    3. Now if I press tab key from 2nd column i.e. Payment #, focus should go to 3rd column, but it goes out of data grid and set the focus of button which is outside data grid.

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bjtable+%2Btab+%2B%22enter+key%22&col=javaforums

  • Manually released mail moving from Policy Quarantine to SPAM Quarantine

    We have configured content filter to quarantine mails which are categorized as a 'Suspected Spam'
    hence all mails quarantined by suspected spam content filter are getting quarantined under 'Policy quarantine'
    I have observed that whenever we release mail from Suspected spam content filter, it is moving from Policy quarantine to Spam quarantine instead of getting delivered to the end user. (behavior is only for suspected spam mails. rest of the filters are working fine)
    has anyone experienced such kind of behavior ?? please suggest

    Hi Don,
    Indeed there are two ways to send to ISQ.
    a)  alt-mailhost('the.euq.queue')
    b)  Insert-Header ('X-Ironport-Quarantine: somevalue')
    But both will send the mail to quarantine and stop, even if I have an action such as duplicate-quarantine. No mail is sent to recipient.
    It may sound weird to most because why would we need to ISQ an email but at the same time want to mail be delivered.
    My goal is to just copy it, and send it to ISQ, while let the mail be delivered.
    At this moment, I can't get both done at the same message/content filter.
    MonitorUserADGroupFilter: if mail-from-group == "CN=somegroup, OU=XX, DC=company, dc=com" {
                                   deliver();
                                   alt-mailhost ("the.euq.queue");
    deliver() is now called "skip-filters()", btw.
    The above wont work because once delivered, the message is no long exist and quarantine to 'the.euq.queue' do no effect.
    If I put alt-mailhost higher than deliver, then the message does not deliver.
    Also replaced with "duplicate-quarantine" to deliver(). Same behavior.
    What's the best way to "deliver and copy to ISQ"?
    Regards,
    Chris

  • 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.

  • New internet provider (moved from Comcast to Uverse) and I can't get my new network to stay put, and I can't get my Time Capsule to stop blinking yellow

    I have moved from Comcast to Uverse, and can't get my TIme Capsule to stop blinking yellow.  I know it isn't updating.  Additionally, I can't get my computer to recognize the 'new' wireless network.  It keeps changing back to the 'old' network.

    You have two separate issues here. although both were created with the recent changes on your network.
    Find out why the Time Capsule is blinking amber as follows:
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click directly on the the Time Capsule icon
    Click directly on the amber dot....and another window will open to explain more about the issue...along with suggested actions that you can take to remedy the issue.
    If you want your Mac to connect first to the "new" network....
    Open System Preferences (gear icon) on the dock
    Open Network
    Click on WiFi on the left
    Click Advanced at the lower right
    Make sure that the name of the network that you want the Mac to connect to first appears at the top of the connection order list. Drag the name to the top if it is not there now.
    Click OK
    Click Apply
    Now your Mac will attemp to connect first to the network that you positioned at the top of the connection order list.

  • HT204150 since moving from mobileme to icloud my calendar and contacts do not sync from my iphone: what should I do

    my calendars and contacts do not sync since moving from mobile me to icloud. what should i do

    michelefromvancouver wrote:
    After that if I go to my calendar on my macair to try and sync to my Imac, by clicking the sync button on the top bar (like I used to with mobile me) I get a drop down menu that says
    1.Time Machine not configured (in shading)
    2. Browse other backup discs (in bold)
    3.Open Time Machine preferences (in bold)
    That's where you're going wrong. Firstly the syncing method that MobileMe used, which places the icon in the menu bar, is quite different from the iCloud method and is irrelevant. Secondly, you're confusing the Time Machine icon with it.
    On this Mac you need to set up in System Preferences>iCloud in the same way, then the syncing is automatic. In iCal on both machines you should see in the Calendar list your calendars listed unrer 'iCloud', and your calendars should be visible at http://icloud.com (and choose Calendar in the welcome screen).
    If they aren't visible online, go to http://me.com/calendar - you should not be able to see them there. If you can, you haven't migrated.

  • Might be a dumb question, but I am moving from 1st gen to iPadair; on Safari, 1st gen to delete apps/sites just visited, you could double tap home key and apps would appear on bottom and one could delete from there. How does it work on ipadair?

    This may be a dumb question, but nonetheless, here goes:
    I just moved from 1st gen ipad to new ipad-air. Great and happy! But, one thing I can't figure out how to do is to delete the pages/sites/apps that I have just used? For example, on the 1st gen. you could double-tap home button and past actions would come up on bottom of screen. I could then delete them one by one, to keep things cleaned up. Am I missing something here? Does it keep a log irregardless? Not the same as deleting history - at least didnt' work for me.

    Close apps and not delete apps.
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen

  • Moved from Manhattan to Queens; Verizon not helping me move my landline

    Hello. I recently moved from Manhattan to Queens.  I want to keep my landline.  (I understand that I can't keep my same telephone number, but I want to keep a landline).  I followed all the steps on the Verizon website for moving.  I received a confirmation email that my "services are on the move!", and I received a tracking number for my order.
    Now, my order is stuck in some sort of limbo.  Verizon has not activated the landline here in my new apartment.  And despite having an appointment for today with a Verizon technician, to my knowledge, no one came out to investigate or set up the landline.  I have held 3 separate chats with 3 separate support technicians, and I have had 3 telephone conversations with Verizon customer support reps, and none of them have been able to resolve my issue.
    I understand that Verizon is trying to retire copper landlines and switch over to FiOS, but my new neighborhood isn't even set up for FiOS --- the only option is copper landlines (other than cell phones).
    What can I do to get a landline established at my new address?

    Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you.
    Please go to your profile page for the forum, and look in the middle, right at the top where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under “My Support Cases” you will find a link to the private board where you and the agent may exchange information. This should be checked on a frequent basis as the agent may be waiting for information from you before they can proceed with any actions.
    To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe".
    Please keep all correspondence regarding your issue in the private support portal.

  • Form button does not work when a program is moved from Windows 8.2 to Windows 7

    Hi,
    I have a few Excel programs which use the ODBC to get data from Access and which have macros which writes data to an external program, MYOB.
    When the macros tries to write the data to MYOB it fails if I am not running the program in administrator mode.   It seems that Windows 8.2 has a different level of security than Windows 7 and must be run in administrator mode for the ODBC to work. 
    I have had issues after running the program in administrator mode (testing) if I simply do a save (in administrator mode) and then send it to the customer.   The issue is that it just will not work on the customer's site.   I have gotten
    around this in the past by saving any changes, going back out of excel, loading the program again (not in administrator mode) and saving it - before sending it to the customer.   This worked until now.
    For some unknown reason, the last time I sent a program to the customer and carried out the above process, the program stopped working.   Originally I thought that the macro just wouldn't work on windows 7, but eventually found that it is the form button
    that will no longer work when the program is moved from 8.2 to 7.
    Does anyone know why there is an incompatibility between 8.2 and Windows 7 and what I should be doing to ensure that my programs work in my customers environment(windows7)?
    In the meanwhile, I have changed the form button to an activex button and the program works fine in both environments.
    Thanking you in advance,

    there is some OP report after Windows update Dec 2014 macro stop responding ( I cant confirm if this is also related to your issue) its because security update for Office maybe conflict with the active-x that you are installed
    try to
    Close Excel
    Start Windows Explorer.
    Select your system drive (usually C:)
    Use the Search box to search for *.exd
    Delete all the files it finds.
    Start Excel again
    Open that file and save it, and try open at Windows 7
    to get more detail about this issue, I suggest also contact Office forum
    this case also will be solve installing kb3025036
    good luck

  • HT4101 Once pictures are moved from your camera to your iPad (using the camera connection kit), how do you get the photos off of the iPad? They do not show up in my photo stream or my iCloud.

    Once pictures are moved from your camera to your iPad (using the camera connection kit), how do you get the photos off of the iPad? They do not show up in my photo stream or my iCloud. I am able to see any photo I took on the iPad using the iPad camera (in iTunes, photo stream, or when I open windows explorer and browse the iPad director), however I cannot see any photos transfered from my camera to the iPad. The camera connection kit must have put my photos in a directory I cannot get to and cannot sync.

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • I have the iPhone 5 and have with 6.0.1 software version.  Although I had them when I moved from iPhone 4 to the 5, the latest update has most of my songs on the phone listed in grey (over 95% of them) and I can't play them.  They are still listed though.

    I have the iPhone 5 and have with 6.0.1 software version.  Although I had them when I moved from iPhone 4 to the 5 (could play them), the latest update has most of my songs on the phone listed in grey (over 95% of them) and I can't play them.  They are still listed in the iTunes library.  When I look in the Summary for the iPhone, it shows Audio as only .16 GB - I have over 5 GB of songs, so what gives?
    P.S. When I look at my Playlists most of the songs are greyed out.  However, at the bottom of the list there is a cloud icon with a downward facing arrow.  When I click on it each song starts to "load" and after a few minutes I have the songs back on in the list.  I have to do this to all my playlists (I had over 100) in order to get access to all my songs.  Then I did a sync and it happened again!
    I use iCloud for documents and some other things (calendar, contact, etc.) but am not aware that I have anything music-wise in the cloud.  Any thougnts?

    You may have to try deleting all the music from your phone (by going to Settings>General>Usage>Music, swipping All Music and tapping Delete), then sync it all back on with iTunes in order to fix this.

Maybe you are looking for